Guns in space are cool when it comes to Han Solo, Captain Kirk, or Ellen Ripley, but otherwise, most people agree that space should be kept weapon-free. That was a big focus of John F. Kennedy’s moonshot speech, as he intimated over and over that the USSR might use space as a “terrifying theater of war.” Space technologies have militaristic uses and connotations, even if they’re not designed for anything of the sort, which was why Russia’s successful launch of Sputnik in 1957 kicked the Space Race into high gear. The U.S. knew that if they had a rocket powerful enough to launch a satellite, they could also launch nukes. Plus, satellites can be used to spy. That’s part of why the U.N. and other countries approved the Outer Space Treaty, which, among other things, restricts the use of weapons of mass destruction in space, as well as using space for military bases or weapons testing (“The Moon and other celestial bodies shall be used by all States Parties to the Treaty exclusively for peaceful purposes”). Despite all this, it used to be common practice for cosmonauts to have access to a gun in the emergency kit of all Soyuz capsules.
Apparently, this all started in 1965 when a return Soyuz flight landed off-course, prompting survival stories that boasted bears, wolves, and other dangerous Siberian wildlife that warranted protection. Though the cosmonauts never actually had to fight anyone or anything and were quickly rescued, the idea had been born that certain situations astronauts encounter could be dangerous enough to warrant a gun. Even after the formation of the ISS, the practice continued.