# CVE-2026-59730: withastro Astro open redirect in @astrojs/node server

Source: https://junglewise.ai/threats/cve-2026-59730-withastro-astro-open-redirect-in-astrojs-node-server  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-27. Updated: 2026-07-27  
License: CC BY 4.0 with a link back

CVE-2026-59730 · Severity: medium · CVSS 4 · Published 2026-07-27

Astro is a web framework used for building content-driven websites. A vulnerability in its Node.js server component could allow attackers to redirect users from a legitimate website to a malicious external site. This occurs when the server incorrectly processes specific web addresses, potentially leading to phishing attacks or the theft of user credentials.

Technologies: [Astro Node.js Adapter](https://junglewise.ai/threats/technologies/node-js-adapter), [@astrojs/node (npm)](https://junglewise.ai/threats/technologies/astrojs-node). Vendors: [Astro](https://junglewise.ai/threats/vendors/astro), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

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

**How severe is CVE-2026-59730?** Medium severity, with a CVSS score of 4, published 27 July 2026.

**Which products and versions are affected?** Astro Node.js Adapter >= 8.1.0, < 11.0.2; @astrojs/node (npm) >= 8.1.0, < 11.0.2, SEMVER:introduced=8.1.0,fixed=11.0.2.

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

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

**Am I affected by CVE-2026-59730?** Check whether you run Astro Node.js Adapter or @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 11.0.2 or later

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


## Technical details

An open redirect vulnerability (CWE-601) exists in the @astrojs/node standalone server's static file handler. When the 'trailingSlash' configuration is set to 'always', the server fails to correctly identify internal paths that begin with a slash-backslash (/\) sequence. Consequently, the server appends a trailing slash and echoes the malicious path into a 301 redirect's Location header. Since modern browsers normalize backslashes to forward slashes, a path like '/\example.com/foo' is interpreted as a protocol-relative URL pointing to an external domain. Exploitation requires the victim to click a specially crafted link. The issue is resolved in version 11.0.2 by ensuring backslash-prefixed paths are recognized as internal.

## Affected products

- withastro astro >= 8.1.0, < 11.0.2

## Identifiers

- CVE-2026-59730
- GHSA-r557-wffq-wvrc

## Timeline

- 2026-07-01: patched: Fix merged into main branch
- 2026-07-02: advisory: Version 11.0.2 released
- 2026-07-27: disclosed: CVE-2026-59730 published

## References

- [https://github.com/withastro/astro/commit/eb6f97e391ee587747e37609c255c7cd4b9cce3c](https://github.com/withastro/astro/commit/eb6f97e391ee587747e37609c255c7cd4b9cce3c)
- [https://github.com/withastro/astro/pull/17252](https://github.com/withastro/astro/pull/17252)
- [https://github.com/withastro/astro/releases/tag/@astrojs/node@11.0.2](https://github.com/withastro/astro/releases/tag/@astrojs/node@11.0.2)
- [https://github.com/withastro/astro/security/advisories/GHSA-r557-wffq-wvrc](https://github.com/withastro/astro/security/advisories/GHSA-r557-wffq-wvrc)

## 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)
- [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)
- [Astro SSRF in remote image inferSize](https://junglewise.ai/threats/cve-2026-27829-astro-ssrf-in-remote-image-infersize)
