Millions of Americans’ medical images and data are on the Internet. Anyone can take a peek.

All told, medical data from more than 16 million scans worldwide was available online, including names, birthdates and, in some cases, Social Security numbers. Experts say it’s hard to pinpoint who’s ...