Even when all entities are in the same team and friendly fire is set to false, mobs still damage the player (primed TNT does not, but only if placed. Summoned primedTnt that is joined into the same team as the player still damages the player).
Linked issues
Comments 5
Since friendly fire affects tnt that you placed down, I would assume so. Furthermore, if it does affect non-player entities, mapmakers would have a lot more control over entities. However, it may as well be working as intended.
Is this still a concern in the current Minecraft version 14w19a / Launcher version 1.3.11 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Is Friendly Fire supposed to affect non-player entities ?