Astronomers using the James Webb Space Telescope have detected possible signs of gases released by volcanic activity on a distant exoplanet.