This applies to mobs that shoot arrows as well as tridents and potions (that means the bug likely occurs with most projectiles). The exception seems to be breezes, however, which work correctly.
Steps to reproduce:
Dig a two deep hole.
Spawn a skeleton in the hole.
Change your gamemode to survival.
Jump in the hole.
❌ The skeleton consistently attempts to shoot the player but fails to hit them.
Related issues
Comments


I just found MC-125936, which this report seems to duplicate. I apologize for not being able to find it earlier.
Can confirm.