{"id":"CVE-2026-59730","aliases":["CVE-2026-59730","GHSA-r557-wffq-wvrc"],"related":[],"kind":"vulnerability","state":"published","title":"@astrojs/node: Backslash-prefixed paths not recognized as internal by trailing-slash redirect","summary":"Astro is a web framework for content-driven websites. In versions 8.1.0 through 11.0.1, when trailingSlash: 'always' is 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 for exploitation: trailingSlash: 'always' must be set (non-default; the default is 'ignore'), the request path must not have a file extension in its final segment, and an attacker must deliver the crafted link to a user. This issue has been fixed in version 11.0.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Astro is a web framework for content-driven websites. In versions 8.1.0 through 11.0.1, when trailingSlash: 'always' is 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 for exploitation: trailingSlash: 'always' must be set (non-default; the default is 'ignore'), the request path must not have a file extension in its final segment, and an attacker must deliver the crafted link to a user. This issue has been fixed in version 11.0.2.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Astro es un framework web para sitios web basados en contenido. En las versiones 8.1.0 a 11.0.1, cuando trailingSlash: ’always’ está configurado, el gestor de archivos estáticos del servidor independiente @astrojs/node añade una barra final a las rutas de solicitud y emite una redirección 301. Las rutas que comienzan con /\\ (barra-barra invertida) no eran reconocidas como rutas internas, por lo que el gestor devolvía la ruta original en el encabezado Location. Debido a que los navegadores tratan \\ como / según la especificación de URL de WHATWG, la redirección resultante podría resolverse en un host externo. Precondiciones para la explotación: trailingSlash: ’always’ debe estar configurado (no es el valor predeterminado; el valor predeterminado es ’ignore’), la ruta de solicitud no debe tener una extensión de archivo en su segmento final, y un atacante debe entregar el enlace manipulado a un usuario. Este problema ha sido solucionado en la versión 11.0.2.","source":"nvd"}],"published":"2026-07-20T23:22:22.000Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":2.1,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":2.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":">= 8.1.0, < 11.0.2","status":"affected"}],"vendor":"withastro","product":"astro","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.1.0","status":"affected","fixed":"11.0.2"}],"ecosystem":"npm","package":"@astrojs/node","purl":"pkg:npm/%40astrojs/node","source":"ghsa"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-r557-wffq-wvrc","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/withastro/astro/pull/17252","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/withastro/astro/commit/eb6f97e391ee587747e37609c255c7cd4b9cce3c","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/withastro/astro/releases/tag/@astrojs/node@11.0.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59730","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/withastro/astro","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-28T13:48:33.961Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59730","url":"https://www.cve.org/CVERecord?id=CVE-2026-59730","licence":"CVE Terms of Use","modified":"2026-07-28T13:49:13.730Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r557-wffq-wvrc","url":"https://github.com/advisories/GHSA-r557-wffq-wvrc","licence":"CC-BY-4.0","modified":"2026-08-12T20:45:07.791Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59730","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59730","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:30.266Z","epss":{"score":0.00359,"percentile":0.31643,"date":"2026-12-01T12:00:22.000Z"}}