By all accounts, it's unsafe just living in the 24th century
Riker's mom? Dead
Beverly's husband, Wesley's dad? Dead
Geordi's mom? Dead
Data's creator & daughter? Dead (Brother deactivated)
Worf's Klingon parents & baby mama? Dead
Troi's dad & sister? Dead
Ro Laren's dad? Tortured to death in front of her
Picard's entire family except maybe his sister-in-law? Dead
Tasha's parents? Dead
& that's just from TNG, the show people complained was too squeaky clean. Hell, the only person seemingly untouched by an untimely death is nutty Barkley. The 24th century is a damn dangerous place
That's kind of unfair. Between the various cities you looking at the status of the parents of but a handful of people, many of those dead persons living in a military-style line of work that brings with it an inherent level of danger.
But if we count the main characters of all of the series you're talking about a few dozen people, even including secondary characters. That's a few dozen people out of TRILLIONS upon trillions who live in the galaxy. (Since you've included not just Earth-based humans, but also those living on human colonies and aliens.)
But I counter with Kirk, both of whom's parents lived until at least he took command of the Enterprise. (If Prime-Universe Spock from "Star Trek '09" is to be believed.) Same for Spock, both of his parents lived until advanced age. (His mother presumably dying of old age for a human, his father dying of Vulcan Alzheimer's at advanced age.) I'm not sure about McCoy's mother but we also know his father died at advanced age of an incurable illness.
You're saying living in 24th century is dangerous based on a handful of examples, examples that are further made to have these things happen to them because it makes for better drama.