{"answers":{"affected":"6 open source packages ship an affected version, including astro and @astrojs/node. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-55303 exists.","fix":"Upgrade astro to a fixed version for your release line: 4.16.19 or 5.13.2.","what":"CVE-2025-55303 is a medium-severity vulnerability in withastro astro, published on 19 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-55303 and fix it if it is affected.\n\nWhat it is: CVE-2025-55303 is a medium-severity vulnerability in withastro astro, published on 19 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-55303 exists.\n\nAffected packages and fixed versions:\n- astro (npm): affected all versions; fixed in 4.16.19\n- astro (npm): affected all versions; fixed in 4.16.19\n- astro (npm): affected from 5.0.0-alpha.0; fixed in 5.13.2\n- astro (npm): affected from 5.0.0-alpha.0; fixed in 5.13.2\n- @astrojs/node (npm): affected all versions; fixed in 9.1.1\n- @astrojs/node (npm): affected all versions; fixed in 9.1.1\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-55303/ (Markdown: https://insights.sbomify.com/CVE-2025-55303/index.md)","id":"CVE-2025-55303","markdown":"https://insights.sbomify.com/CVE-2025-55303/index.md","name":"CVE-2025-55303","record":{"aliases":["GHSA-xf8x-j4p2-f749"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["security_bypass","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Astro web framework","requires_auth":"none","summary":"Attackers can bypass third-party domain restrictions in Astro's image endpoint using protocol-relative URLs, serving unauthorized images.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"astro","vendor":"astro"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-115","name":"Misinterpretation of Input"}],"description":"Astro is a web framework for content-driven websites. In versions of astro before 5.13.2 and 4.16.18, the image optimization endpoint in projects deployed with on-demand rendering allows images from unauthorized third-party domains to be served. On-demand rendered sites built with Astro include an /_image endpoint which returns optimized versions of images. A bug in impacted versions of astro allows an attacker to bypass the third-party domain restrictions by using a protocol-relative URL as the image source, e.g. /_image?href=//example.com/image.png. This vulnerability is fixed in 5.13.2 and 4.16.18.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-55303.yaml","stars":null,"title":"Astro - Unauthorized Third-Party Image Access"}],"tier":"weaponised"},"has_fix":true,"headline":"Unauthorized third-party images in Astro’s _image endpoint","id":"CVE-2025-55303","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2025"},"n_packages":6,"n_references":2,"next":{"headline":"Exiv2 has quadratic performance in ICC profile parsing in JpegBase::readMetadata","id":"CVE-2025-55304"},"packages":[{"ecosystem":"npm","fixed":["9.1.1"],"introduced":["0"],"last_affected":[],"package":"@astrojs/node","purl":null,"source":"GHSA-xf8x-j4p2-f749"},{"ecosystem":"npm","fixed":["9.1.1"],"introduced":["0"],"last_affected":[],"package":"@astrojs/node","purl":"pkg:npm/%40astrojs/node","source":"GHSA-xf8x-j4p2-f749"},{"ecosystem":"npm","fixed":["4.16.19"],"introduced":["0"],"last_affected":[],"package":"astro","purl":null,"source":"GHSA-xf8x-j4p2-f749"},{"ecosystem":"npm","fixed":["4.16.19"],"introduced":["0"],"last_affected":[],"package":"astro","purl":"pkg:npm/astro","source":"GHSA-xf8x-j4p2-f749"},{"ecosystem":"npm","fixed":["5.13.2"],"introduced":["5.0.0-alpha.0"],"last_affected":[],"package":"astro","purl":null,"source":"GHSA-xf8x-j4p2-f749"},{"ecosystem":"npm","fixed":["5.13.2"],"introduced":["5.0.0-alpha.0"],"last_affected":[],"package":"astro","purl":"pkg:npm/astro","source":"GHSA-xf8x-j4p2-f749"}],"prev":{"headline":"The Scratch Channel Allows Username Modification","id":"CVE-2025-55301"},"products":["astro"],"published":"2025-08-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"}],"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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-08-19","vendors":["withastro"]},"summary":"Attackers can bypass third-party domain restrictions in Astro's image endpoint using protocol-relative URLs, serving unauthorized images.","url":"https://insights.sbomify.com/CVE-2025-55303/"}