The bug
If a wither flies through a Nether or End portal, it will not be teleported.
Comments 3
Seems absolutely intended.
Code analysis (Mojang mappings, 23w05a): when an entity is inside an end portal or nether portal block, it checks if the entity can change dimensions. WitherBoss#canChangeDimensions()
returns false, so the wither can't change dimensions.
Can confirm in 1.19.3 and 23w05a