The bug
When spectating a marker, the player is allowed to move. Occasionally, and seemingly randomly, the player will be teleported back to the location of the marker. Additionally, when the player changes their game mode, they will occasionally be teleported back to the location of the marker.
How to reproduce
Summon a marker:
/summon marker
Enter spectator mode:
/gamemode spectator
Spectate the marker:
/spectate @e[type=minecraft:marker,limit=1,sort=nearest]
Attempt to move
❌ You are able to move, and may occasionally be moved back to the position of the marker
Can confirm