CVE-2025-59837: astro allows bypass of image proxy domain validation leading to SSRF and potential XSS

Published Oct 28, 2025
·
Updated

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

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
npm/astro>=5.13.4<5.13.10
5.13.10
astro Astro Node.js>=5.13.4<5.13.10

Event History

Oct 28, 2025
Advisory Published
via GitHub·05:45 PM
Data Sourced
via GitHub·05:45 PM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·07:54 PM
Data Sourced
via MITRE·07:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
RemedyAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-59837?

CVE-2025-59837 has a medium severity due to its potential for bypassing security measures.

2

How do I fix CVE-2025-59837?

To fix CVE-2025-59837, update the astro package to version 5.13.10 or later.

3

What functionality does CVE-2025-59837 affect?

CVE-2025-59837 affects the ability of the application to adequately block certain URLs for server-side fetching.

4

Which versions of astro are affected by CVE-2025-59837?

Versions of astro between 5.13.4 and 5.13.10 are affected by CVE-2025-59837.

5

Can CVE-2025-59837 be exploited easily?

Yes, CVE-2025-59837 can be exploited easily due to the ability to bypass protections using backslashes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203