A large observing program of the James Webb Space Telescope has recently provided the first comprehensive view of Trans-Neptunian Objects (TNOs), the small primitive bodies of the outer solar system, orbiting beyond Neptune, from which some comets originate. Observations of 59 objects obtained with the NIRSpec instrument have been analyzed by an international research team involving the Institut d'Astrophysique Spatiale. The infrared spectra reveal the first-ever detections of CO₂ and CO ices on small bodies in the outer solar system.