It has been confirmed on "Dr. Horrible" DVD commentary : the girl with a wig in Dr. Horrible was Sarah Michelle Gellar in a secret cameo appearance !!! She visited the Dr. Horrible set for one day and did the scene spontaneously.

Click on the link for more :

Sarah Michelle Gellar - "Dr Horrible" Web Series - A secret cameo appearance ?!