In England and Wales, an accepted offer on a house is not binding until contracts are exchanged. Until then, the seller may accept a higher offer from someone else. This is called gazumping, and it is not illegal.
Estate agents must pass every offer to the seller, even after one has been accepted. Buyers can ask for the property to be marked “under offer” or “sold subject to contract.”