{"id":"JLSEC-2026-617","aliases":["JLSEC-2026-617","ANT-2026-59AETZK3","ANT-2026-APXT86GW"],"related":[],"kind":"vulnerability","state":"published","title":"Open redirect in the HTTP.jl static file server canonical redirects","summary":"### Description\n\nThe static file server's canonical 301 redirects (index-file strip, directory trailing-slash add, and file trailing-slash strip) built the `Location` header verbatim from the un-normalized request target. Request-target validation only requires a leading `/`, has no CTL bytes, and the `..` check plus segment decoding drop empty segments, so a target like `//evil.example/index.html` or `/\\evil.example/` survived validation and produced a `Location` such as `//evil.example/` — a scheme-relative network-path reference (RFC 3986 §4.2) that browsers resolve to a foreign authority.\n\n### Impact\n\nA crafted request to the file server could produce a redirect to an attacker-controlled host (open redirect).\n\n### Patches\n\nFixed in HTTP.jl v2.4.0. A new `_sanitize_redirect_location` collapses any leading run of `/` or `\\` separators down to a single `/`, re-rooting the `Location` at the server's own origin so it can never carry an authority component (backslashes are treated as separators because browsers normalize `\\` to `/`). Every canonical-redirect branch routes its `Location` through the sanitizer; single-rooted local paths are unchanged.\n\nReported to the JuliaLang security team through Anthropic's Coordinated Vulnerability Disclosure program.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"### Description\n\nThe static file server's canonical 301 redirects (index-file strip, directory trailing-slash add, and file trailing-slash strip) built the `Location` header verbatim from the un-normalized request target. Request-target validation only requires a leading `/`, has no CTL bytes, and the `..` check plus segment decoding drop empty segments, so a target like `//evil.example/index.html` or `/\\evil.example/` survived validation and produced a `Location` such as `//evil.example/` — a scheme-relative network-path reference (RFC 3986 §4.2) that browsers resolve to a foreign authority.\n\n### Impact\n\nA crafted request to the file server could produce a redirect to an attacker-controlled host (open redirect).\n\n### Patches\n\nFixed in HTTP.jl v2.4.0. A new `_sanitize_redirect_location` collapses any leading run of `/` or `\\` separators down to a single `/`, re-rooting the `Location` at the server's own origin so it can never carry an authority component (backslashes are treated as separators because browsers normalize `\\` to `/`). Every canonical-redirect branch routes its `Location` through the sanitizer; single-rooted local paths are unchanged.\n\nReported to the JuliaLang security team through Anthropic's Coordinated Vulnerability Disclosure program.","format":"markdown","source":"jlsec"}],"published":"2026-06-23T12:59:32.708Z","modified":"2026-07-21T14:00:03.572Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"Julia","package":"HTTP","purl":"pkg:julia/HTTP?uuid=cd3eb016-35fb-5094-929b-558a96fad6f3","source":"jlsec"}],"references":[{"url":"https://github.com/JuliaWeb/HTTP.jl/commit/49453c0ec1c814f37bdcf1f3cd8ee4e3366c549c","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/JuliaWeb/HTTP.jl/pull/1316","tags":["web"],"sources":["jlsec"]}],"credits":["Julia Security Team in collaboration with Claude and Anthropic Research"],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-617","url":"https://osv.dev/vulnerability/JLSEC-2026-617","licence":"CC-BY-4.0","modified":"2026-07-21T14:00:03.572Z"}],"updatedAt":"2026-11-25T22:56:26.177Z"}