{"id":"CVE-2026-59730","published":"2026-07-27T20:00:28Z","modified":"2026-07-28T13:49:13Z","title":"@astrojs/node: Backslash-prefixed paths not recognized as internal by trailing-slash redirect","vendor":"withastro","product":"astro","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"LOW","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0046,"percentile":0.31913,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-r557-wffq-wvrc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/withastro/astro/pull/17252","tags":["x_refsource_MISC"]},{"url":"https://github.com/withastro/astro/commit/eb6f97e391ee587747e37609c255c7cd4b9cce3c","tags":["x_refsource_MISC"]},{"url":"https://github.com/withastro/astro/releases/tag/@astrojs/node@11.0.2","tags":["x_refsource_MISC"]}],"priority":{"score":7.9,"factors":[{"name":"EPSS percentile","points":6.38},{"name":"CVSS severity","points":1.47}]},"vendorSlug":"withastro","affectedVersions":[{"vendor":"withastro","product":"astro","versions":[">= 8.1.0, < 11.0.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-28T13:48:33.961696Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@astrojs/node","vulnerableRanges":[">=8.1.0, <11.0.2"],"patched":["11.0.2"],"from":["GHSA-r557-wffq-wvrc"],"provenance":"source"}],"summary":{"text":"The @astrojs/node standalone server's static file handler in the Astro web framework, when trailingSlash is set to 'always', fails to treat backslash-prefixed (/\\) paths as internal, so its 301 trailing-slash redirect echoes the raw path back in the Location header. An attacker who gets a user to open a crafted link can cause the browser to be redirected to an external host, which requires that trailingSlash: 'always' be configured (non-default), that the requested path has no file extension in its final segment, and that the victim is induced to follow the link.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:35Z"},"euvd":{"id":"EUVD-2026-49586","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-27829","published":"2026-02-26","fixed":"9.5.4","kev":false},{"cve":"CVE-2026-29772","published":"2026-03-24","fixed":"10.0.0","kev":false},{"cve":"CVE-2026-41322","published":"2026-04-24","fixed":"10.0.5","kev":false},{"cve":"CVE-2026-59730","published":"2026-07-27","fixed":"11.0.2","kev":false},{"cve":"CVE-2026-102984","published":"2026-09-30","fixed":"11.1.3","kev":false,"link":{"from":"CVE-2026-59730","to":"CVE-2026-102984","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@astrojs/node","fromFixed":"11.0.2","toFixed":"11.1.3","daysApart":65}]}}],"package":"npm:@astrojs/node"}}