OpenStreetMap doesn't follow international law but instead maps according to who actually controls the territory. You can read more about this exact issue in a recent forum thread: https://community.openstreetmap.org/t/the-syrian-golan-heights-are-included-in-the-boundaries-of-israel/139628