Loading advisory.
Loading advisory.
@astrojs/node: Backslash-prefixed paths not recognized as internal by trailing-slash redirect
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.
Published 2026-07-20 23:22 UTC · Modified 2026-08-12 20:45 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| @astrojs/node | npm | >= 8.1.0, < 11.0.2 | 11.0.2 | npm install @astrojs/node@11.0.2 |
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
Fixed by treating backslash-prefixed paths the same as //-prefixed paths in isInternalPath(), so they are no longer rewritten with a trailing slash.
Use the default trailingSlash: 'ignore' setting, which does not issue trailing-slash redirects in the static file handler.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.005 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |