You can leash hostile wolves. This happens in all 3 gamemodes. This really doesn't make sense as you can't leash other neutral mobs like zombie pigmen or endermen. Also, this happens if they are leashed before they are hostile or while they are hostile. Either way, they remain leashed.
- relates to
MC-104778 Non-hostile wild wolves and ocelots cannot be put on leashes