{"id":"GHSA-r557-wffq-wvrc","revision":"ff40ce0ffc2c486a93c33cbbc2628468","records":[{"revision":"ff40ce0ffc2c486a93c33cbbc2628468","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-r557-wffq-wvrc","aliases":["CVE-2026-59730"],"title":"@astrojs/node: Backslash-prefixed paths not recognized as internal by trailing-slash redirect","description":"### Impact\n\nWith `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.\n\n**Preconditions:**\n- `trailingSlash: 'always'` must be set (non-default; the default is `'ignore'`)\n- The request path must not have a file extension in its final segment\n- An attacker must deliver the crafted link to a user\n\n### Patches\n\nFixed by treating backslash-prefixed paths the same as `//`-prefixed paths in `isInternalPath()`, so they are no longer rewritten with a trailing slash.\n\n### Workarounds\n\nUse the default `trailingSlash: 'ignore'` setting, which does not issue trailing-slash redirects in the static file handler.\n\n### References\n\n- [WHATWG URL spec: backslash normalization](https://url.spec.whatwg.org/#url-parsing)","state":0,"publishedAt":"2026-07-20T23:22:22+00:00","modifiedAt":"2026-08-12T20:45:07.7913929+00:00","affected":[{"ecosystem":"npm","name":"@astrojs/node","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"8.1.0"},{"kind":"fixed","version":"11.0.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/withastro/astro/security/advisories/GHSA-r557-wffq-wvrc","https://nvd.nist.gov/vuln/detail/CVE-2026-59730","https://github.com/withastro/astro/pull/17252","https://github.com/withastro/astro/commit/eb6f97e391ee587747e37609c255c7cd4b9cce3c","https://github.com/withastro/astro","https://github.com/withastro/astro/releases/tag/@astrojs/node@11.0.2"],"sourceUrl":"https://github.com/advisories/GHSA-r557-wffq-wvrc","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-r557-wffq-wvrc","identifiers":["GHSA-r557-wffq-wvrc","CVE-2026-59730"]},"retained":false,"historicalAffected":[]}],"coverage":[]}