A speculative paper argues that ancient planetary flybys may have helped trigger some of Earth’s mass extinctions.