# CVE-2026-27829: Astro SSRF in remote image inferSize

Source: https://junglewise.ai/threats/cve-2026-27829-astro-ssrf-in-remote-image-infersize  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-02-25. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-27829 · Severity: low · CVSS 3.1 · Published 2026-02-25

Astro's image processing feature includes an option to automatically fetch remote images to determine their dimensions. A flaw in this feature bypasses the developer's configured domain restrictions, allowing an attacker to trick the server into fetching content from any host—including internal services and cloud metadata endpoints. This could expose sensitive information or facilitate attacks on internal infrastructure.

Technologies: [@astrojs/node (npm)](https://junglewise.ai/threats/technologies/astrojs-node). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-27829 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-27829 being exploited in the wild.

**How severe is CVE-2026-27829?** Low severity, with a CVSS score of 3.1, published 25 February 2026.

**Which products and versions are affected?** @astrojs/node (npm) SEMVER:introduced=9.0.0,fixed=9.5.4.

**Is there a fix for CVE-2026-27829?** Yes. @astrojs/node (npm): upgrade to 9.5.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-27829 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-27829?** Check whether you run @astrojs/node (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @astrojs/node (npm): upgrade to 9.5.4 or later

  ```sh
  npm install @astrojs/node@9.5.4
  ```


## Technical details

The vulnerability is a Server-Side Request Forgery (CWE-918) in Astro's image pipeline. The inferSize option, which fetches remote images at render time to infer their dimensions, fails to enforce the image.domains and image.remotePatterns allowlist restrictions that should control which hosts can be accessed. An attacker who can influence the image URL parameter (via CMS content, user input, or other untrusted sources) can cause the server to make HTTP requests to arbitrary hosts. The vulnerability affects @astrojs/node versions 9.0.0 through 9.5.3 and is fixed in 9.5.4 and later.

## Affected products

- Astro @astrojs/node 9.0.0 to 9.5.3

## Identifiers

- CVE-2026-27829
- GHSA-cj9f-h6r6-4cx2

## Timeline

- 2026-02-25: disclosed
- 2026-02-25: patched: Fixed in @astrojs/node 9.5.4

## References

- [https://github.com/withastro/astro/security/advisories/GHSA-cj9f-h6r6-4cx2](https://github.com/withastro/astro/security/advisories/GHSA-cj9f-h6r6-4cx2)

## Related threats

- [Astro Node adapter denial of service in Host header parsing](https://junglewise.ai/threats/cve-2026-102984-astro-is-a-web-framework-for-content-driven-websites-prior-to-11)
- [withastro Astro open redirect in @astrojs/node server](https://junglewise.ai/threats/cve-2026-59730-withastro-astro-open-redirect-in-astrojs-node-server)
- [Astro: Cache Poisoning due to incorrect error handling when if-match header is malformed](https://junglewise.ai/threats/cve-2026-41322-astro-cache-poisoning-due-to-incorrect-error-handling-when-if)
- [Astro Server Islands memory exhaustion DoS due to missing request body size limit](https://junglewise.ai/threats/cve-2026-29772-astro-astrojs-node-memory-exhaustion-dos-in-server-islands)
- [Astro memory exhaustion DoS in Server Actions](https://junglewise.ai/threats/cve-2026-27729-astro-memory-exhaustion-dos-in-server-actions)
