In an underground mine I have several mine carts. Sometimes a zombie gets stuck in one and I'm afraid to go near them. Can they attack you if they are in the mine cart?
According to my in-game testing, no, zombies cannot attack you when riding in a minecart. You can get as close as you would like to that zombie, and as long as he's still riding the cart, he's harmless.