{"id":"CVE-2025-65019","published":"2025-11-19T16:40:47Z","modified":"2025-11-19T21:05:19Z","title":"Astro Cloudflare adapter has a Stored Cross Site Scripting vulnerability in /_image endpoint","vendor":"withastro","product":"astro","tier":"tail","description":{"text":"Astro is a web framework. Prior to version 5.15.9, when using Astro's Cloudflare adapter (@astrojs/cloudflare) with output: 'server', the image optimization endpoint (/_image) contains a critical vulnerability in the isRemoteAllowed() function that unconditionally allows data: protocol URLs. This enables Cross-Site Scripting (XSS) attacks through malicious SVG payloads, bypassing domain restrictions and Content Security Policy protections. This issue has been patched in version 5.15.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00274,"percentile":0.20272,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-fvmw-cj7j-j39q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/withastro/astro/commit/9e9c528191b6f5e06db9daf6ad26b8f68016e533","tags":["x_refsource_MISC"]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":4.05},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"withastro","affectedVersions":[{"vendor":"withastro","product":"astro","versions":["< 5.15.9"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-11-19T21:05:09.306723Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"astro","vulnerableRanges":["<5.15.9"],"patched":["5.15.9"],"from":["GHSA-fvmw-cj7j-j39q"],"provenance":"source"}],"summary":{"text":"The Astro framework's Cloudflare adapter (@astrojs/cloudflare) contains a stored cross-site scripting flaw in its /_image optimisation endpoint, where the isRemoteAllowed() function unconditionally permits data: protocol URLs. An attacker with network access who can get a user to interact with a crafted link or image request, on a site using output: 'server' with the affected adapter prior to version 5.15.9, can inject malicious SVG payloads that execute script in the victim's browser, bypassing domain restrictions and Content Security Policy protections.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:43Z"},"euvd":{"id":"EUVD-2025-198182","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-withastro-astro-cve-2025-55303","parents":[{"from":"CVE-2025-64757","to":"CVE-2025-65019","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/internal-helpers/src/remote.ts"],"commits":["https://github.com/withastro/astro/commit/b8ca69b97149becefaf89bf21853de9c905cdbb7","https://github.com/withastro/astro/commit/9e9c528191b6f5e06db9daf6ad26b8f68016e533"],"basis":"shared function","functions":["isRemoteAllowed"]}]}],"packageHistory":[{"cve":"CVE-2025-64764","published":"2025-11-19","fixed":"5.15.8","kev":false,"link":{"from":"CVE-2025-64764","to":"CVE-2025-65019","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"5.15.8","toFixed":"5.15.9","daysApart":0}]}},{"cve":"CVE-2025-64765","published":"2025-11-19","fixed":"5.15.8","kev":false},{"cve":"CVE-2025-66202","published":"2025-12-08","fixed":"5.15.8","kev":false},{"cve":"CVE-2025-65019","published":"2025-11-19","fixed":"5.15.9","kev":false},{"cve":"CVE-2026-33769","published":"2026-03-24","fixed":"5.18.1","kev":false,"link":{"from":"CVE-2025-65019","to":"CVE-2026-33769","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"5.15.9","toFixed":"5.18.1","daysApart":125}]}},{"cve":"CVE-2026-41067","published":"2026-04-24","fixed":"6.1.6","kev":false},{"cve":"CVE-2026-45028","published":"2026-05-13","fixed":"6.1.10","kev":false}],"package":"npm:astro"}}