If we go by number of people-hours in space, then spaceflight is pretty safe... 150 years of human life in space, and 17 deaths in orbital spaceflight... mean time of 8 years between deaths, safer than general aviation (7 years)...
Russian/Soviet spaceflight is particularly safe (about 20 years mean time between deaths), especially if you exclude the first dozen or so years (no orbital spaceflight deaths have occurred for the Soviets or Russians past 1971), making it about as safe as biking or driving (so long as you use a Soyuz for launch and reentry).
https://en.wikipedia.org/wiki/List_of_spaceflight_records#To...