A judge in the US state of Georgia has approved the use of electronic voting machines - despite being "gravely concerned" that they could be hacked.
There wasn't enough time before November's mid-term elections to switch to a secure paper-based alternative, said District Judge Amy Totenberg.
Fears that e-voting machines could be hacked have caused some to warn against their adoption in some countries.
The judgement was a "significant" one, according to one e-voting expert.
A lawsuit was filed in May last year against Georgia's Secretary of State over the Direct-Recording Electronic (DRE) voting machines.
There are now less than two months until the US mid-term elections in November, when many new members of the US Senate and House of Representatives will be elected.
Judge Totenberg said in her judgement the lawsuit had taken place at the "eleventh hour" and that switching to a paper-based voting system now could "just as readily jeopardise the upcoming elections, voter turnout and the orderly administration of the election".
However, she also acknowledged the seriousness of the threat posed by hackers, and rebuked state officials for not dealing with the problem sooner.
'Heads in sand'
"The court is gravely concerned about the state's pace in responding to the serious vulnerabilities of its voting system - which were raised as early as 2016 - while ageing software arrangements, hardware and other deficiencies were evident still earlier," she said.
Later, she concluded, "The state's posture in this litigation - and some of the testimony and evidence presented - indicated that the defendants and state election officials had buried their heads in the sand."
There are 14 US states which use machines to record votes. No paper record of the voting is made in the process.
"I think that judgement is really significant," said e-voting expert Prof Steve Schneider at the University of Surrey.
"The judge is asking for it to be addressed… saying that the 2020 elections are around the corner."
Prof Schneider told the BBC that there was a risk people using the machines would begin to distrust the democratic process if security researchers' concerns weren't taken seriously.
"I would hope that the authorities would take whatever steps they could to regain that trust while they're still using these machines," he told the BBC.