CVE Watchtower

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)
Severity Level
LOW
Published Date
Jul 20, 2026
Last Modified
Aug 12, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Published
EPSS Score (30-Day)
0.36%Probability
Root Weakness (CWE)
A web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.
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:N
Attack 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

Affected Versions
  • @astrojs/node >= 8.1.0, < 11.0.2
Patched Versions
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.

  1. Check whether you run @astrojs/node and which version.
  2. No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
  3. 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 alerts

Data last checked: Sep 23, 2026 10:58 UTC