Astro is vulnerable to SSRF due to missing allowlist enforcement in remote image inferSize
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| withastro | astro | 9.0.0 to before 9.5.4 | 9.5.4 | Patch available | CNA |
| — | @astrojs/node (npm) | 9.0.0 to before 9.5.4 | 9.5.4 | Patch available | GHSA-cj9f-h6r6-4cx2 |
- astro Vendorwithastro Affected 9.0.0 to before 9.5.4 Fixed in 9.5.4 Patch available CNA
- @astrojs/node (npm) Vendor— Affected 9.0.0 to before 9.5.4 Fixed in 9.5.4 Patch available GHSA-cj9f-h6r6-4cx2
Remediation
- Fix · CNA astro (withastro) Fixed in 9.5.4
- Fix · GHSA-cj9f-h6r6-4cx2 @astrojs/node (npm) Fixed in 9.5.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-27829
- 2026-10-03 Alias added: GHSA-cj9f-h6r6-4cx2
References
More withastro @astrojs/node vulnerabilities
- TI-2026-23358 Astro: Memory exhaustion DoS due to missing request body size limit in Server Islands CVSS 3.1HIGH 7.5
- TI-2026-22091 Astro has memory exhaustion DoS due to missing request body size limit in Server Actions CVSS 3.1HIGH 7.5
- TI-2026-20654 Astro has Full-Read SSRF in error rendering via Host: header injection CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-27829 · CVE Program
- CVE-2026-27829 · NVD
- FIRST EPSS
- GHSA-cj9f-h6r6-4cx2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences