{"id":"CVE-2026-27829","published":"2026-02-26T00:36:40Z","modified":"2026-02-26T16:21:44Z","title":"Astro is vulnerable to SSRF due to missing allowlist enforcement in remote image inferSize","vendor":"withastro","product":"astro","tier":"tail","description":{"text":"Astro is a web framework. In versions 9.0.0 through 9.5.3, a bug in Astro's image pipeline allows bypassing `image.domains` / `image.remotePatterns` restrictions, enabling the server to fetch content from unauthorized remote hosts. Astro provides an `inferSize` option that fetches remote images at render time to determine their dimensions. Remote image fetches are intended to be restricted to domains the site developer has manually authorized (using the `image.domains` or `image.remotePatterns` options). However, when `inferSize` is used, no domain validation is performed — the image is fetched from any host regardless of the configured restrictions. An attacker who can influence the image URL (e.g., via CMS content or user-supplied data) can cause the server to fetch from arbitrary hosts. This allows bypassing `image.domains` / `image.remotePatterns` restrictions to make server-side requests to unauthorized hosts. This includes the risk of server-side request forgery (SSRF) against internal network services and cloud metadata endpoints. Version 9.5.4 fixes the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00492,"percentile":0.35127,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-cj9f-h6r6-4cx2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/withastro/astro/commit/e01e98b063e90d274c42130ec2a60cc0966622c9","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":7.03},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"withastro","affectedVersions":[{"vendor":"withastro","product":"astro","versions":[">= 9.0.0, < 9.5.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-26T16:21:28.348418Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@astrojs/node","vulnerableRanges":[">=9.0.0, <9.5.4"],"patched":["9.5.4"],"from":["GHSA-cj9f-h6r6-4cx2"],"provenance":"source"}],"summary":{"text":"The Astro web framework's image pipeline, in its remote image handling for the inferSize option, fails to enforce the image.domains and image.remotePatterns allowlists when fetching remote images to determine their dimensions. An attacker who can influence the remote image URL, for example through CMS content or user-supplied data, can cause the server to make requests to unauthorized hosts without authentication or user interaction, which enables server-side request forgery against internal services and cloud metadata endpoints.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:53Z"},"euvd":{"id":"EUVD-2026-8785","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-withastro-astro-cve-2025-55303","parents":[{"from":"CVE-2025-64757","to":"CVE-2026-27829","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/astro/src/assets/endpoint/generic.ts","packages/astro/src/assets/endpoint/shared.ts"],"commits":["https://github.com/withastro/astro/commit/b8ca69b97149becefaf89bf21853de9c905cdbb7","https://github.com/withastro/astro/commit/e01e98b063e90d274c42130ec2a60cc0966622c9"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-55207","published":"2025-08-15","fixed":"9.4.1","kev":false,"link":{"from":"CVE-2025-55207","to":"CVE-2026-27829","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@astrojs/node","fromFixed":"9.4.1","toFixed":"9.5.4","daysApart":195}]}},{"cve":"CVE-2026-25545","published":"2026-02-24","fixed":"9.5.4","kev":false},{"cve":"CVE-2026-27729","published":"2026-02-24","fixed":"9.5.4","kev":false},{"cve":"CVE-2026-27829","published":"2026-02-26","fixed":"9.5.4","kev":false},{"cve":"CVE-2026-29772","published":"2026-03-24","fixed":"10.0.0","kev":false},{"cve":"CVE-2026-41322","published":"2026-04-24","fixed":"10.0.5","kev":false},{"cve":"CVE-2026-59730","published":"2026-07-27","fixed":"11.0.2","kev":false}],"package":"npm:@astrojs/node"}}