{"answers":{"affected":"2 open source packages ship an affected version, including astro. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-65019 exists.","fix":"Upgrade astro to 5.15.9 or later.","what":"CVE-2025-65019 is a medium-severity cross-site scripting vulnerability in withastro astro, published on 19 Nov 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-65019 and fix it if it is affected.\n\nWhat it is: CVE-2025-65019 is a medium-severity cross-site scripting vulnerability in withastro astro, published on 19 Nov 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-65019 exists.\n\nAffected packages and fixed versions:\n- astro (npm): affected all versions; fixed in 5.15.9\n- astro (npm): affected all versions; fixed in 5.15.9\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-65019/ (Markdown: https://insights.sbomify.com/CVE-2025-65019/index.md)","id":"CVE-2025-65019","markdown":"https://insights.sbomify.com/CVE-2025-65019/index.md","name":"CVE-2025-65019","record":{"aliases":["GHSA-fvmw-cj7j-j39q"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Astro Cloudflare adapter","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript via malicious SVG payloads in the image endpoint, bypassing CSP and domain restrictions in server-mode Astro apps.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"astro","vendor":"astro"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Astro Cloudflare adapter has a Stored Cross Site Scripting vulnerability in /_image endpoint","id":"CVE-2025-65019","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":2,"n_references":2,"next":{"headline":"Rallly Has Unauthorized Poll Duplication via Insecure Direct Object Reference (IDOR)","id":"CVE-2025-65020"},"packages":[{"ecosystem":"npm","fixed":["5.15.9"],"introduced":["0"],"last_affected":[],"package":"astro","purl":null,"source":"GHSA-fvmw-cj7j-j39q"},{"ecosystem":"npm","fixed":["5.15.9"],"introduced":["0"],"last_affected":[],"package":"astro","purl":"pkg:npm/astro","source":"GHSA-fvmw-cj7j-j39q"}],"prev":{"headline":"LIBPNG is vulnerable to a heap buffer overflow in `png_combine_row` triggered via `png_image_finish_read`","id":"CVE-2025-65018"},"products":["astro"],"published":"2025-11-19","related":[{"cvss_score":7.8,"headline":"Server source code is exposed to the public if sourcemaps are enabled","id":"CVE-2024-56159","kev_date_added":null,"published":"2024-12-19"},{"cvss_score":7.5,"headline":"Astro: Host header SSRF in prerendered error page fetch","id":"CVE-2026-54299","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":7.2,"headline":"astro allows bypass of image proxy domain validation leading to SSRF and potential XSS","id":"CVE-2025-59837","kev_date_added":null,"published":"2025-10-28"},{"cvss_score":7.1,"headline":"Astro: Reflected XSS via unescaped slot name","id":"CVE-2026-50146","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":7.1,"headline":"Astro is vulnerable to Reflected XSS via the server islands feature","id":"CVE-2025-64764","kev_date_added":null,"published":"2025-11-19"},{"cvss_score":6.9,"headline":"Astro middleware authentication checks based on url.pathname can be bypassed via url encoded values","id":"CVE-2025-64765","kev_date_added":null,"published":"2025-11-19"},{"cvss_score":6.9,"headline":"Unauthorized third-party images in Astro’s _image endpoint","id":"CVE-2025-55303","kev_date_added":null,"published":"2025-08-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-19","vendors":["withastro"]},"summary":"Attackers can execute arbitrary JavaScript via malicious SVG payloads in the image endpoint, bypassing CSP and domain restrictions in server-mode Astro apps.","url":"https://insights.sbomify.com/CVE-2025-65019/"}