The attack would require a Glass user to scan a QR code that would force them onto a attacker-controlled wireless network.
Lookout Mobile researchers reported the flaw to Google on May 15 and it was patched on June 4 for the 10,000 pilot users of Glass.
Google limited QR code execution to points where the user had solicited it, Lookout researcher Marc Rogers said.
He said the fast response from Google set a "benchmark for how connected things should be secured going forward".
In Rogers' scenario demonstration video, a victim scanned a QR code at a bus stop and was pushed onto a network that was broadcast from an attacker's Wifi Pineapple.
They were then pushed to a custom page containing a known Android 4.0.4 web vulnerability to Glass allowing for remote control over the internet.
"When photographed by an unsuspecting Glass user, the code forced Glass to connect silently to a hostile wifi access point that we controlled. That access point in turn allowed us to spy on the connections Glass made, from web requests to images uploaded to my butt," Marc Rogers said.
"Both the vulnerability and its method of delivery are unique to Glass as a consequence of it becoming a connected thing."