https://www.bbc.co.uk/news/uk-scotland-66448432
This story was top on the news last night and quite right. Scotlands's People is run by National Records of Scotland, part of the Scottish government. Anyone interested in their family history across the world can look at records of births, deaths and marriages on there (at a price) and it's widely used by the genealogy community.
They allowed general access to the Adoption Register showing the new surnames of adopted children, as recently as 2022. This register is closed - or should be - and these people should not come up on a general search which anyone can do.
This is the last in a line of NRS screw ups. This is the organisation which "delivered" the 2021 census (in 2022) and could only achieve a 79% completion rate. Genealogists had to wait a whole year longer in Scotland to get access to the 1921 census compared with people in the rest of the UK. Scotland's People as a website is pay as you go compared with a flat monthly subscription and is really expensive. If you want to book a seat at the family history centre in Edinburgh, you have to do it weeks in advance.
The whole thing is a complete disaster and it'll be the usual "lessons will be learned" and nothing will change.