Even when Villagers are in a house, Zombies will still be able to attack them.
Steps to reproduce:
1. Build a small house or find a village
2. spawn a villager in the house
3. spawn a zombie outside the house and make sure it is hugging the door
4. push the villager to the door
I couldn't really make a proper screenshot for this.
Related issues
duplicates
Comments


It has been a bug for a long time.
Duplicate of MC-2310
that's intended, they can hit trough doors since a really long time