Astro's bypass of image proxy domain validation leads to SSRF and potential XSS
- Severity:
- High
Description
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.
Recommendation
Update the astro package to the latest compatible version. Followings are version details:
- Affected version(s): >= 5.13.4, < 5.13.10
- Patched version(s): 5.13.10
References
Related Issues
- Axios has a NO_PROXY Hostname Normalization Bypass that Leads to SSRF - CVE-2025-62718
- webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects → SSRF + cache persistence - CVE-2025-68157
- Astro Cloudflare adapter has Stored Cross-site Scripting vulnerability in /_image endpoint - CVE-2025-65019
- webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behavior - CVE-2025-68458
You might also like:
- Tags:
- npm
- astro
Anything's wrong? Let us know Last updated on October 29, 2025


