Huddersfield needed a late goal from substitute Anton Robinson to see off a spirited performance from Yeovil.
Jordan Rhodes' header from a Danny Ward free-kick forced a good save from home keeper Marek Stech in the first period.
Both sides had chances after the break - Dominic Blizzard smashing a shot against the bar for Yeovil and Gary Roberts warming Stech's palms.
Robinson grabbed the winner when he rebounded following Scott Arfield's powerful effort.
The result means the Glovers, who also hit the bar through Oli Johnson after Robinson's goal, remain rooted to the foot of the table - three points off safety.
Huddersfield, who have extended their record-breaking unbeaten run to 41 league games, remain in second position, three points behind Charlton.
VIEWS FROM THE DRESSING ROOM
Huddersfield Town manager Lee Clark told BBC Radio Leeds:
"I thought we were woeful in the first half, and all credit to Yeovil who I thought were excellent. I'm disappointed, we got one or two things sorted out at half time and we improved but Yeovil can count themselves unlucky.
"We didn't hit the heights today - not many of us have enhanced out reputation but we've come up with the goods.
"I had a good chat with Anton Robinson, I said to him that 'you're the future' and no matter what league we're in he has a huge future to play, both short term and long term."