{"id":"CVE-2025-55303","published":"2025-08-19T18:08:00Z","modified":"2025-08-19T20:50:34Z","title":"Unauthorized third-party images in Astro’s _image endpoint","vendor":"withastro","product":"astro","tier":"core","eol":null,"affectedVersions":[{"vendor":"withastro","product":"astro","versions":[">= 5.0.0-alpha.0, < 5.13.2","< 4.16.18"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-08-19T20:49:42.803973Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"Astro, the withastro web framework, has a flaw in the /_image optimization endpoint of sites using on-demand rendering, where a protocol-relative URL such as //example.com can bypass the configured third-party domain restrictions and cause images from unauthorized domains to be served. An unauthenticated remote attacker with network access to the site can exploit this simply by crafting a request to the endpoint, with no special configuration, privileges, or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:19Z"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00761,"percentile":0.56262,"date":"2026-11-23","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-02-12","exploitedFirstSeen":"2026-02-12","ransomware":false,"evidence":[{"url":"https://tracker.crowdsec.net/cves/CVE-2025-55303","date":"2026-02-12"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-115","name":"Misinterpretation of Input"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-xf8x-j4p2-f749","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/withastro/astro/commit/4d16de7f95db5d1ec1ce88610d2a95e606e83820","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"npm","package":"astro","vulnerableRanges":[">=5.0.0-alpha.0, <5.13.2","<4.16.19"],"patched":["5.13.2","4.16.19"],"from":["GHSA-xf8x-j4p2-f749"],"provenance":"source"},{"ecosystem":"npm","package":"@astrojs/node","vulnerableRanges":["<9.1.1"],"patched":["9.1.1"],"from":["GHSA-xf8x-j4p2-f749"],"provenance":"source"}],"advisories":[{"id":"GHSA-xf8x-j4p2-f749","url":"https://github.com/advisories/GHSA-xf8x-j4p2-f749","severity":"MODERATE","ecosystem":"npm","package":"astro","vulnerableRanges":[">=5.0.0-alpha.0, <5.13.2"],"patched":["5.13.2"],"provenance":"source","from":"GHSA"},{"id":"GHSA-xf8x-j4p2-f749","url":"https://github.com/advisories/GHSA-xf8x-j4p2-f749","severity":"MODERATE","ecosystem":"npm","package":"@astrojs/node","vulnerableRanges":["<9.1.1"],"patched":["9.1.1"],"provenance":"source","from":"GHSA"},{"id":"GHSA-xf8x-j4p2-f749","url":"https://github.com/advisories/GHSA-xf8x-j4p2-f749","severity":"MODERATE","ecosystem":"npm","package":"astro","vulnerableRanges":["<4.16.19"],"patched":["4.16.19"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2025-25235","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-25235","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"nuclei":[{"id":"CVE-2025-55303","name":"Astro - Unauthorized Third-Party Image Access","severity":"medium","path":"http/cves/2025/CVE-2025-55303.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-55303.yaml"}],"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2025-08-19","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2025-55303","provenance":"source"},{"date":"2026-02-12","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://tracker.crowdsec.net/cves/CVE-2025-55303","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":61.1,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":5.0,"detail":"added 284 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":11.25,"detail":"percentile 0.5626"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":4.83,"detail":"base score 6.9"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-withastro-astro-cve-2025-55303","children":[{"from":"CVE-2025-55303","to":"CVE-2025-64757","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/internal-helpers/src/path.ts"],"commits":["https://github.com/withastro/astro/commit/4d16de7f95db5d1ec1ce88610d2a95e606e83820","https://github.com/withastro/astro/commit/b8ca69b97149becefaf89bf21853de9c905cdbb7"],"basis":"shared function","functions":["removeQueryString"]}]}],"packageHistory":[{"cve":"CVE-2024-56140","published":"2024-12-18","fixed":"4.16.17","kev":false},{"cve":"CVE-2024-56159","published":"2024-12-19","fixed":"5.0.8","kev":false,"link":{"from":"CVE-2024-56159","to":"CVE-2025-55303","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"4.16.18","toFixed":"4.16.19","daysApart":243}]}},{"cve":"CVE-2025-54793","published":"2025-08-08","fixed":"5.12.8","kev":false,"link":{"from":"CVE-2025-54793","to":"CVE-2025-55303","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:astro","fromFixed":"5.12.8","toFixed":"5.13.2","daysApart":11},{"kind":"same-code","provenance":"machine","files":["packages/internal-helpers/src/path.ts"],"commits":["https://github.com/withastro/astro/commit/0567fb7b50c0c452be387dd7c7264b96bedab48f","https://github.com/withastro/astro/commit/4d16de7f95db5d1ec1ce88610d2a95e606e83820"],"basis":"shared file"},{"kind":"similar","provenance":"machine","score":0.2,"basis":"same product + description similarity"}]}},{"cve":"CVE-2025-55303","published":"2025-08-19","fixed":"5.13.2","kev":false},{"cve":"CVE-2025-59837","published":"2025-10-28","fixed":"5.13.10","kev":false},{"cve":"CVE-2025-61925","published":"2025-10-10","fixed":"5.14.3","kev":false},{"cve":"CVE-2025-64757","published":"2025-11-19","fixed":"5.14.3","kev":false}],"package":"npm:astro"}}