CVE-2026-46526 is the second time the same researcher pair has filed the same PoC URL, http://127.0.0.1\@1.1.1.1, against a Python project whose validate_url calls urlparse(url).hostname and forwards the original url string to requests.get. The first was Open WebUI eighteen days earlier. Open WebUI's fix refused the bytes where the two parsers disagree. local-deep-research replaced its parser. The audit that followed found six more SSRF bypasses in the same weekend, none of them the CVE.
CVE-2026-46526: local-deep-research Replaced urlparse With urllib3. The Audit That Followed Found Six More SSRF Bypasses.
vendor
patterns
cve
proof of concept
The PoC came from the same researcher pair that broke Open WebUI eighteen days earlier
CVE-2026-46526 is the SSRF bypass in local-deep-research's safe_get, fixed in 1.6.10. The advisory is GHSA-g23j-2vwm-5c25. The PoC is one URL:
http://127.0.0.1\@1.1.1.1The same byte string appears in GHSA-8w7q-q5jp-jvgx, filed against Open WebUI eighteen days earlier and covered in CVE-2026-45400. Both advisories credit Fushuling and RacerZ-fighting as reporters. Both describe the same parser-differential: urllib.parse.urlparse reads 1.1.1.1 as the hostname; requests reads 127.0.0.1. Both projects' validate_url functions ran their SSRF checks against urlparse's view and handed the original URL to requests.get. Both were vulnerable to the same byte string by the same mechanism for the same reason.
What the two projects did with the fix is where the exhibits diverge.
Open WebUI added a bouncer. local-deep-research replaced the parser.
Open WebUI's patch (commit e7ba8978) adds eight lines at the top of validate_url: a for ch in ('\\', '\t', '\n', '\r') check that refuses any URL containing characters where the two parsers disagree. The four existing layers (validators.url, scheme allowlist, WEB_FETCH_FILTER_LIST, the urlparse-based resolve gate) are unchanged. The principle the commit message states: refuse the bytes where they would disagree, do not make them agree.
local-deep-research's patch (commit 88e13ff7, PR #3873) ships both shapes. Layer 1 is Open WebUI's bouncer, expressed as a regex:
# GHSA-g23j-2vwm-5c25: \s covers whitespace; backslash is the load-bearing
# payload that urlparse treats as a literal and urllib3 treats as a delimiter.
RFC_FORBIDDEN_URL_CHARS_RE = re.compile(r"[\\\s\x00-\x1f\x7f]")Layer 2 is the move Open WebUI declined: replace urlparse(url).hostname with urllib3.util.parse_url(url).host. The same parser requests uses internally. The validator and the HTTP client now resolve the destination through one function in one library:
- hostname = parsed.hostname
+ try:
+ u3 = parse_url(url)
+ except LocationParseError:
+ logger.warning("Blocked URL: urllib3 parser rejected it")
+ return False
+ hostname = u3.hostThe two patches both close the advisory PoC. The reason local-deep-research could not stop at the bouncer is one line in SafeSession.send:
def send(self, request: requests.PreparedRequest, **kwargs):
"""Override send to validate every outgoing request against SSRF.
This runs on **all** calls, both the initial request (routed
here by ``requests.Session.request()``) and each redirect hop
(routed here by ``resolve_redirects()``).
"""
if request.url and not ssrf_validator.validate_url(request.url, ...):SafeSession re-validates the URL after requests has prepared the request. By the time send runs, requests has already canonicalized the backslash into %5C in the path. Layer 1's regex looks for raw \. A percent-encoded backslash is not in the character class. Layer 2 uses the parser requests itself just used to produce the prepared request. It is the only check that can run after preparation and still see what the socket layer will see.
Open WebUI does not re-validate after preparation. The bouncer alone is enough there. The architectural choice (re-validate at send time) forced the structural choice (use the same parser as the client). local-deep-research took the structural choice. The audit that followed found six SSRF bypasses that had nothing to do with the parser differential.
Six bypasses, two days, none of them the CVE
The CVE was one bug. The commit log over the next forty-eight hours, threaded through PR #3882 and PR #3932, filed six more.
1. IPv6 unspecified :: reached loopback services. 0.0.0.0/8 was in PRIVATE_IP_RANGES. The IPv6 equivalent ::/128 was not. On Linux, a connection to [::]:port is routed by the kernel to a service bound on [::1]:port, the same semantics 0.0.0.0 carries for IPv4. http://[::]:5000/admin cleared the validator and reached the admin port. The fix adds ::/128 to PRIVATE_IP_RANGES. The commit message records the end-to-end verification: "a server bound on [::1]:<port> (loopback only) received connections from http://[::]:<port>/ before this fix and none after."
2. Four cloud-metadata IPs were not in the always-block list. ALWAYS_BLOCKED_METADATA_IPS had one entry: 169.254.169.254 (AWS IMDS). Missing from the list were AWS ECS task metadata v3 (169.254.170.2), AWS ECS task metadata v4 (169.254.170.23), Tencent Cloud (169.254.0.23), and AlibabaCloud (100.100.100.200). When an operator set allow_private_ips=True for a legitimate self-hosted SearXNG on 10.x or 192.168.x, the four uncovered metadata IPs became reachable.
3. IPv6 transition prefixes wrapped IPv4 destinations. 2002::/16 (6to4) embeds an IPv4 address in 2002:xxxx:xxxx::; 64:ff9b::/96 (NAT64 well-known) maps RFC1918 to IPv6; 2001::/32 (Teredo) tunnels IPv6 over UDP/IPv4; 100::/64 (discard) is a sinkhole prefix. On Linux hosts with sit0 or NAT64 routes configured, [2002:7f00:1::] routes to 127.0.0.1. A Round-2 audit follow-up later added the deprecated RFC 4291 IPv4-Compatible IPv6 form ::/96, where [::169.254.169.254] reaches the IMDS literal on hosts with ::/96 kernel routes. A Round-1 audit follow-up added RFC 8215 NAT64 local-use 64:ff9b:1::/48, citing a HackerOne bounty against the Ruby ssrf_filter library and several recent SSRF CVEs that lived in the same gap.
4. NAT64-wrapped IMDS survived the operator opt-in. IPv6-only cloud deployments on AWS, GKE, and Azure reach IPv4 services through DNS64+NAT64. local-deep-research added LDR_SECURITY_ALLOW_NAT64=true as the opt-in for operators in that shape. The opt-in by itself would have re-opened [64:ff9b::a9fe:a9fe] to 169.254.169.254. A new is_nat64_wrapped_metadata_ip() helper extracts the embedded IPv4 from any NAT64-wrapped IPv6 destination and matches it against ALWAYS_BLOCKED_METADATA_IPS before the carve-out is consulted. The operator opt-in for IPv4 reachability does not license IMDS exposure.
5. The notification validator never unwrapped IPv4-mapped IPv6 IMDS. ssrf_validator.is_ip_blocked unwraps ::ffff:169.254.169.254 to 169.254.169.254 before consulting the metadata list. notification_validator._ip_matches_blocked_range, a parallel function in a parallel file, did not. IMDS was reachable through the notification webhook path with the IPv4-mapped form. The fix mirrors the unwrap at the top of the second function.
6. allow_private_ips=True silently disabled the absolute metadata block in the notification validator. validate_service_url short-circuited the entire host check when the operator had set the flag: if scheme in (http, https) and not allow_private_ips:. With the flag on, http://169.254.169.254/, http://[::ffff:169.254.169.254]/, and http://[64:ff9b::a9fe:a9fe]/ all returned valid=True. Every metadata IP block this PR series had just added was bypassed for any operator running with the flag set. The fix drops the not allow_private_ips guard and routes the decision through ssrf_validator.is_ip_blocked, which keeps IMDS blocked even with allow_private_ips=True.
None of these were the CVE. None of them depended on the backslash, the parser differential, or \@. All of them had been there since the IPv6 ranges were first written into the validator. The CVE was the audit's invitation.
This is gate-before-canonicalize at the root, the second exhibit of the catalog's Python LLM-tool subsurface after Open WebUI CVE-2026-45400. It is also what happens when the structural fix exposes the perimeter. The validator could survive disagreeing with its sink because the noise of the disagreement masked the other holes. Once the two were forced to agree, the holes were the only thing left.
The notification validator was the second parser
The audit had to land each fix in two files. Every IPv6 range, every metadata IP, every flag interaction was implemented twice, once in ssrf_validator.py, once in notification_validator.py. The two had drifted. The IPv4-mapped IPv6 unwrap (bypass #5) was the most clean-cut case: identical capability, present in one file, absent in the other. The allow_private_ips=True short-circuit (bypass #6) was the most dangerous: the notification validator's logic positively contradicted ssrf_validator's "ALWAYS_BLOCKED" promise for the same set of inputs.
The refactor at the end of PR #3932 extracts a shared is_nat64_wrapped_metadata_ip helper and routes both validators' is_ip_blocked paths through ssrf_validator. The two parallel re-implementations become one. The shape under the parallel-validator drift is the catalog's parallel-implementation-gap, and it is the same shape as the parser differential: two layers wrote their own rule for the same logical question, and the rules disagreed.
The next exhibit is queued
Fushuling and RacerZ-fighting have a working PoC, a reproducible bug class, and a list of Python projects whose validate_url function calls urlparse(url).hostname and forwards the original url string to requests.get. Open WebUI was the first. local-deep-research was the second. The exact byte string http://127.0.0.1\@<anything> is the entire input the next exhibit needs.
Both projects are LLM-adjacent: Open WebUI is a chat UI for local models; local-deep-research is "an AI-powered research assistant for deep, iterative research" whose tool-use loop decides which URLs to fetch from inside its agent loop. The validate_url gate sits between the LLM's reasoning and requests.get. An attacker who can influence a URL into the agent's context, through prompt injection in a fetched document, through a search result the agent decides to follow, through any input the LLM treats as data, gets one shot at the gate per tool call. The gate has to be right. The gate has to agree with what requests does next.
The defenders' choice repeats. The bouncer is cheaper. The translator is what makes the rest of the audit possible.
PoC: GHSA-g23j-2vwm-5c25. Patches: PR #3873 (parser differential), PR #3882 (metadata IPs and log redaction), PR #3932 (IPv6 transition prefixes and cross-validator parity).
The bouncer is cheaper. The translator is what makes the rest of the audit possible.