Entity AI is missing dimension sanity checks and can lead to player being killed when the attacking entity is in another dimension. This is more critical issue on custom server software running multiple custom worlds which can have similar terrain and exists in the normal coordinate space where in the vanilla its unlikely this causes many problems.
For more details: https://bugs.mojang.com/browse/MC-149563