CVE-2026-59730@astrojs/node Open Redirect
NVD
Vulnerability Summary
### Impact
With `trailingSlash: 'always'` configured, the `@astrojs/node` standalone server's static file handler appends a trailing slash to request paths and issues a `301` redirect. Paths beginning with `/\` (slash-backslash) were not recognized as internal paths, so the handler would echo the raw path back in the `Location` header. Because browsers treat `\` as `/` per the WHATWG URL specification, the resulting redirect could resolve to an external host.
**Preconditions:**
- `trailingSlash: 'always'` must be set (non-default; the default is `'ignore'`)
- The request path must not have a file extension in its final segment
- An attacker must deliver the crafted link to a user
### Patches
Fixed by treating backslash-prefixed paths the same as `//`-prefixed paths in `isInternalPath()`, so they are no longer rewritten with a trailing slash.
### Workarounds
Use the default `trailingSlash: 'ignore'` setting, which does not issue trailing-slash redirects in the static file handler.
### References
- [WHATWG URL spec: backslash normalization](https://url.spec.whatwg.org/#url-parsing)
With `trailingSlash: 'always'` configured, the `@astrojs/node` standalone server's static file handler appends a trailing slash to request paths and issues a `301` redirect. Paths beginning with `/\` (slash-backslash) were not recognized as internal paths, so the handler would echo the raw path back in the `Location` header. Because browsers treat `\` as `/` per the WHATWG URL specification, the resulting redirect could resolve to an external host.
**Preconditions:**
- `trailingSlash: 'always'` must be set (non-default; the default is `'ignore'`)
- The request path must not have a file extension in its final segment
- An attacker must deliver the crafted link to a user
### Patches
Fixed by treating backslash-prefixed paths the same as `//`-prefixed paths in `isInternalPath()`, so they are no longer rewritten with a trailing slash.
### Workarounds
Use the default `trailingSlash: 'ignore'` setting, which does not issue trailing-slash redirects in the static file handler.
### References
- [WHATWG URL spec: backslash normalization](https://url.spec.whatwg.org/#url-parsing)
CVSS v4.0 Base Metrics — Score 2.1
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:NAttack VectorNetwork
Attack ComplexityHigh
Attack RequirementsNone
Privileges RequiredNone
User InteractionActive
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)None
Availability (Vulnerable System)None
Confidentiality (Subsequent System)None
Integrity (Subsequent System)Low
Availability (Subsequent System)None
Affected & Patched Versions
- @astrojs/node >= 8.1.0, < 11.0.2
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run @astrojs/node and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
Timeline
- Jul 20, 2026Published
- Aug 12, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new @astrojs/node CVEsYou are reading CVE-2026-59730. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://github.com/withastro/astro/security/advisories/GHSA-r557-wffq-wvrc
- Patchhttps://github.com/withastro/astro/pull/17252
- Patchhttps://github.com/withastro/astro/commit/eb6f97e391ee587747e37609c255c7cd4b9cce3c
- Referencehttps://github.com/withastro/astro/releases/tag/@astrojs/node@11.0.2
- CVE Recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-59730
- Referencehttps://github.com/advisories/GHSA-r557-wffq-wvrc
Data last checked: Sep 23, 2026 10:58 UTC