TL;DR
The open redirect fundamentals have not moved since the original open redirect writeup. What moved is the ground underneath them. The WHATWG URL spec became the thing browsers actually implement, and the URL parsers shipped with Python, Node and Go drifted apart from each other and from the browser. An allowlist that extracts a host in one parser and a redirect that resolves in another is a bypass waiting to be written. This post is the 2026 update: what the spec codified, where the parsers disagree, and which of the old backslash, at-sign and userinfo tricks still land.
Why 2018 guidance is not enough
The 2018 advice was correct and remains correct: do not pattern match, parse the URL and compare the host against an explicit allowlist. The problem is the quiet assumption inside the word parse. The advice assumed that parsing a URL produces one answer. It does not. It produces the answer that one specific parser gives, and your validation parser is usually not the parser that will resolve the redirect in the victim’s browser.
That split is the whole game. If your server validates with one library and the browser follows the Location header with its own WHATWG based parser, any input the two read differently is a candidate bypass. The host your code extracted and checked against the allowlist is not the host the browser navigates to.
What the WHATWG URL spec codified
Before the WHATWG URL Standard, URL parsing was a loose collection of RFC 3986 readings, each library interpreting the edge cases on its own. The WHATWG URL spec changed that for the web platform. It is a state machine. It defines, byte by byte, how a browser turns a string into a structured URL, including all the parts RFC 3986 left as should rather than must.
Two of those definitions matter directly here. First, the spec treats the backslash as equivalent to the forward slash for special schemes such as http and https. A browser reading https:/\attacker.com sees two slashes and a host. Second, the spec is explicit about userinfo: everything up to the last at-sign in the authority is credentials, and the host is what follows. Both behaviors are now standard, interoperable and relied upon. They are not bugs a vendor will fix. They are the defined behavior of every modern browser, which means a validator that does not reproduce them exactly is validating a different URL than the one that gets navigated.
Where the parsers disagree
The interesting failures live in the gap between a server side parser and the browser, and in the gaps between server side parsers themselves. Three of the common ones:
- Python urllib.parse is forgiving and splits the authority on the first at-sign in some code paths and the last in others depending on which function you call. urlparse and urlsplit do not normalize backslashes to slashes the way a browser does, so a backslash host can be read as part of the path server side while the browser reads it as the authority.
- The Node URL object implements the WHATWG algorithm, so it normalizes backslashes and resolves userinfo the way a browser does. That sounds safe, and it is, as long as your validation uses the same object. The danger is mixed stacks: validate with a hand written regex or a legacy helper, then hand the raw string to a client that follows the WHATWG rules.
- Go net/url follows RFC 3986 closely and is stricter than the browser. It will reject or mis-split some inputs a browser happily resolves, and it does not treat the backslash as a slash. A Go service that parses, extracts a Host field it considers empty or safe, and then emits the original raw string in a redirect, has handed the browser a string Go never really understood.
The pattern across all three: the validator and the resolver are different code with different rules. The substring and prefix version of this mistake is covered in substring matching is not validation. The parser version is subtler because the code did parse. It just parsed with the wrong engine.
The old tricks that still work
None of the classic payloads from the original writeup have aged out. If anything the spec work made some of them more reliable, because the browser behavior is now guaranteed rather than incidental.
- Backslash host. A payload shaped like https:/\attacker.com still works against any validator that does not normalize the backslash to a slash before extracting the host. Browsers normalize it. Many server parsers do not.
- Userinfo at-sign. A payload where the allowed host is placed before an at-sign and the attacker host after it still works against any check that reads the left side as the host. The browser reads the right side. The allowlist that trusted the left side loses.
- Double slash protocol relative. A leading double slash followed by the attacker host still resolves to the attacker origin under the current scheme. It is not new, and it is not fixed, because it is correct behavior.
- Combinations. Stacking a backslash with userinfo, or userinfo with a path that contains the allowed label, defeats validators that handle each trick in isolation. Test them combined, not one at a time.
The reason these survive is structural. They are not parser bugs. They are the points where two correct parsers, reading the same bytes, produce two different hosts.
How to validate in 2026
The fix is the same shape as before, tightened for the parser reality:
- Parse with the same engine that will resolve the redirect, or as close to it as your platform allows. On a JavaScript stack, build a URL object and compare its origin, never its string prefix. On other stacks, prefer a WHATWG conformant library over the legacy standard one.
- Compare the parsed host against the allowlist with strict, exact, type aware equality. One label, one comparison, no containment.
- Do not emit the raw input. Emit a value you reconstructed from the parsed, validated components, so the string that reaches the browser is the string you actually checked. Reconstruction closes the gap where the validator read one host and the resolver read another.
- Where you cannot parse with the browser’s engine, do not allow a full URL at all. Accept a path or a short opaque key that maps server side to a known destination, and resolve it yourself.
The core advice has not changed: do not trust a redirect parameter, and compare a parsed host against an allowlist. The 2026 refinement is to stop treating the word parse as if it has one meaning. Pick the engine, reconstruct the output, and assume anyone sending you a URL knows about the gap between your parser and the one that will navigate.