# CVE-2026-27829: Astro is vulnerable to SSRF due to missing allowlist enforcement in remote image inferSize

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-25T18:11:47.000Z
- Modified: 2026-06-17T10:27:45.213Z
- Also known as: GHSA-cj9f-h6r6-4cx2
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- withastro astro: >= 9.0.0, < 9.5.4
- @astrojs/node (npm): from 9.0.0 before 9.5.4
- astro @astrojs/node: from 9.0.0 before 9.5.4

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-cj9f-h6r6-4cx2> (exploit, vendor-advisory, web)
- <https://github.com/withastro/astro/commit/e01e98b063e90d274c42130ec2a60cc0966622c9> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27829> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2026-27829](https://www.cve.org/CVERecord?id=CVE-2026-27829), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-cj9f-h6r6-4cx2](https://github.com/advisories/GHSA-cj9f-h6r6-4cx2), CC-BY-4.0, modified 2026-02-28
- NVD: [CVE-2026-27829](https://nvd.nist.gov/vuln/detail/CVE-2026-27829), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27829 · Whole record: https://cve.day/CVE-2026-27829.json · Rebuilt by cve.day 2026-11-25T22:59:14.924Z
