Cross-site scripting in Gatsby - #VU165937
Published: November 11, 2026
Vulnerability details
The vulnerability allows a remote attacker on the local network to execute arbitrary JavaScript in a victim's browser through reflected cross-site scripting.
The vulnerability exists due to missing content-type specification in Gatsby's development server /_gatsby/file endpoint when proxying attacker-controlled responses, allowing browser content sniffing to interpret HTML as a web page. A remote attacker on the local network can trick a victim into opening a crafted URL using the u query parameter to proxy malicious HTML through a development server exposed to an untrusted network.