A cab driver and at least one passenger were treated for injuries this morning after a collision left the taxi upside down on State Street — and vulnerable to a thief who reached into the car and swiped money, police said.

The Yellow Cab was carrying two passengers, heading east on State Street, when it went through a red light about 7:30 a.m., said Detective James Miller, a police spokesman. He said a car, in turn, hit the taxi’s rear, causing it to flip over.

As the taxi lay in the street, an unidentified man reached into the cab and stole money from a cup, Miller said.

“Obviously his intent wasn’t for the care of the driver or the passenger,” Miller said.

The passenger and driver were taken to Albany Medical Center Hospital with non life-threatening injuries, Miller said.

He said police were looking at area surveillance cameras to try to learn the identity of the thief.