If an undead mob is hit by an Ender Dragon’s breath attack - either breathing by the portal or a dragon fireball - it will take no damage, and will instead be healed. This is caused by the fact that both of these attacks take the form of Area Effect Clouds that simply use the instant_damage
effect to deal damage, and undead are naturally healed by that effect.
This bug is related to MC-84595, as both are caused by the same underlying issue.
Can confirm. Making dragon breath damage its own effect would also have benefits for datapacks and the like, since the present hardcoded behavior whereby undeads are healed by instant damage and damaged by instant health often interferes with attempts to give players options for AoE damage.