Danny Schofield struck right on half-time when Andy Welsh darted down the left byline and crossed for the ex-Huddersfield man to knock in at the second attempt.
Paul Warne set up Schofield for his second after 66 minutes and Yeovil seemed to have the game won.
But Crewe brought on two substitutes who made an immediate impact.
One of them, Byron Moore, shook off Craig Alcock to pull a goal back two minutes after his arrival and the other sub, Anthony Elding, set up the second for Shaun Miller to knock in at the far post.
Yeovil struck again though, and substitute Gavin Tomlin set up Darren Way whose 12-yard effort reached the net via the far post five minutes from time.