Canonicalization differentials at security gates¶
A large share of "fixed but still bypassable" findings share one shape: a security gate and the actual router disagree about which representation of the path is authoritative. The gate tests one string, the router resolves another, and an attacker crafts input that passes one but is interpreted by the other.
The canonical example is Mailpit GHSA-8r62-w5wh-fc5m / CVE-2026-67448: a cross-site WebSocket hijacking fix was reimplemented as an origin check gated on a raw-URI prefix test, but Go's ServeMux routes on the percent-decoded path. Requesting /%61pi/events skips the origin gate (strings.HasPrefix("/%61pi/events", "/api/") is false) while the mux decodes %61 → a and dispatches to /api/events. The upgrader's CheckOrigin returns true, so the browser upgrades to a cross-origin WebSocket with no credential or auth. The original CVE-2026-22689 was "fixed" by deleting CheckOrigin; the regression reintroduced it as true and moved the control into the bypassable raw-prefix test.
This is the same bug class as return-URL scheme bypasses and backslash open redirects, but pointed at auth/origin/CORS gates instead of redirect sinks. The reusable rule: a security decision and the eventual sink must operate on the same normalized representation that the downstream router/browser/fetcher will follow.
Operator signal¶
Look for this pattern whenever you see a security control that:
- keys on the raw request target /
RequestURI/r.URL.RawPath/Hostheader / SNI while the handler routes on a decoded, normalized, or differently-parsed value; - runs a prefix / substring / regex allowlist on a path or URL before the router normalizes it;
- makes an origin/host/CORS decision in middleware but the actual socket, fetch, redirect, or upgrade applies a different check (or none);
- was patched by moving the control rather than adding it, especially a fix that swaps one representation for another.
High-signal gate surfaces to check for representational drift:
| Gate | Raw representation it tends to test | Router/browser representation it disagrees with |
|---|---|---|
Go ServeMux path-prefix origin/CSRF gate | r.RequestURI (wire target, percent-encoded) | r.URL.Path (decoded) |
Host/X-Forwarded-Host trust decision | client Host | SNI, :authority, decoded path in the backend |
Redirect / Location allowlist | pre-normalization string | browser URL parser (double-decode, \→/) |
CORS / CheckOrigin on a WS/upgrade | middleware prefix test | upgrade handshake origin (often unenforced) |
| Signed-token / JTI / nonce scope check | string compare on a field | canonical decoded value the verifier later uses |
Preconditions¶
- You have explicit permission to test the application or service.
- You can identify at least one security gate (origin, CSRF, CORS, host-trust, path allowlist, token scope) that guards an interesting sink (WebSocket/upgrade, API route, redirect, authenticated fetch, SSRF-adjacent proxy).
- You can observe the gate's decision (status code, response header, whether the upgrade/handshake succeeds) without needing to exfiltrate data or touch real users.
Lab harness (safe, replayable)¶
Set up a local instance of the target so you can produce a control pair, one request the gate should block and one that should bypass it. For Mailpit, the advisory's own proof is a loopback binary plus a tiny SMTP/WebSocket client:
# Loopback lab instance, no UI auth (the pre-condition the advisory used).
./mailpit --disable-version-check \
--database ./mailpit-lab.db \
--listen 127.0.0.1:8025 \
--smtp 127.0.0.1:1025 \
--max-message-size 50
#!/usr/bin/env python3
# Control pair: same cross-origin Origin, plain vs percent-encoded target.
import socket, urllib.request
def ws_upgrader(target):
req = urllib.request.Request(
f"http://127.0.0.1:8025{target}",
headers={
"Upgrade": "websocket",
"Connection": "Upgrade",
"Sec-WebSocket-Key": "dGhlIHNhbXBsZSBub25jZQ==",
"Sec-WebSocket-Version": "13",
"Origin": "https://evil.example", # cross-origin, should be gated
},
)
with urllib.request.urlopen(req, timeout=5) as r:
return r.status # 403 = gated, 101 = bypass
print("plain /api/events ->", ws_upgrader("/api/events"))
print("encoded /%61pi/events ->", ws_upgrader("/%61pi/events"))
Positive result: plain path returns 403 while the percent-encoded path returns 101 Switching Protocols. Keep this control pair in every report, it is the entire proof. Do not exfiltrate mail content; proving the cross-origin socket opens is enough.
Validation workflow¶
- Locate the gate and the router. Find where the security decision is made (middleware,
CheckOrigin, header trust, path allowlist) and where the actual routing/normalization happens. Note which representation each uses. - Produce the control pair. One input the gate should block, one that changes only the representation while keeping the decoded/normalized value identical. Record both status codes / handshake outcomes.
- Enumerate the representation space for the specific sink:
- percent-encoding of path segments (
%61→a,%2F→/) - overlong / double-decoded forms (
%252F,//collapse) - backslash vs forward-slash on Windows-ish or Go-ish routers
- mixed-case scheme/segment where only one side normalizes case
- userinfo /
@/ trailing dot / trailing%00where the parser and the gate differ Host/ SNI /:authority/X-Forwarded-Hostdivergence- Confirm the sink is reachable through the bypassed representation (upgrade succeeds, API returns the guarded resource, redirect resolves off-origin).
- Scope the impact to the actual user context: cross-origin socket, cross-origin credentialed fetch, off-origin redirect, or scope confusion in a token. Label any inference; separate the bypass from any secondary data-exfil claim.
- Capture version provenance. Record the exact version/build where the bypass holds and the first patched version that keys the gate on the router's representation.
Related examples in this class¶
- Concourse post-login redirect via
redirect_uridouble-decode:/%252F→//after the router normalizes, see return-URL scheme-bypass testing. - Gogs
redirect_tobackslash smuggling:/a/../\\example.compasses a leading-slash same-site check, browser normalizes\→/→ off-origin. - CakePHP Authentication backslash normalization before slash conversion, bypassing a "local target only" check.
- Puma PROXY-protocol v1 source-IP trust when a trusted edge keeps
Host/SNI and origin disagree. - Apache Shiro Jakarta EE trusting client-controlled
Refereras the post-login return target. - Reverse::Proxy (GHSA-5xq5-hx4g-f5v6 / CVE-2026-75922): routing decision and upstream serializer disagree on encoded versus decoded
PATH_INFO, turning%0d%0ain the client target into a CRLF in the proxy's self-serialized request line, the same representational drift pointed at a request-framing sink rather than a gate. See the "DecodedPATH_INFOframing at serialized upstream request lines" section of the HTTP desync research campaigns page. - Echo (Go web framework)
%2Fstatic-file differential: the router matches routes on the raw encoded path (req.URL.RawPath, preserving%2F), so/admin%2Fsecret.txtis a single segment that does not match the protected/admin/*route, whileStaticDirectoryHandlercallsurl.PathUnescape()before resolving the filesystem path and converts%2F→/, readingadmin/secret.txton disk. A security gate (route-level auth) and the file sink disagree on which representation of the path is authoritative. See GHSA-vfp3-v2gw-7wfq / CVE-2026-55677. - Hono
serveStaticdouble-decode (GHSA-5r4p-p66f-jhc7 / CVE-2026-111757, fixed 4.13.11): Hono decodes the request path once before routing;serveStaticdecodes it again before resolving the file. A malformed percent-encoded sequence (e.g.%25-prefixed or invalid escape that survives the first decode still encoded) makes the router match the encoded form, so middleware mounted on the static prefix, such as an auth check, never runs, while the second decode inside the handler resolves the real file. The file stays inside the configured root (no traversal); the bypass is purely gate-skipping on a route-vs-handler decode-count mismatch. Operator fingerprint: on any framework where a static-file handler is mounted under middleware, send one request with a double-encoded segment (%2561where%61/ais expected) and compare whether prefix middleware fires (cookie set, redirect, log line) against whether the file body is served, mismatch = auth-less read of protected static assets. Same-wave Angular SSR siblings on this class:@angular/platform-serverprotocol-relative open redirect where thestartsWith('//')guard runs before WHATWG dot-segment normalization (/.;/(//evil.test)→Location: //evil.test302; GHSA-w739-gvwx-grc3 / CVE-2026-111754, fixed 22.2.1/21.2.25/20.3.33), grep app-side return-URL guards for checks on the pre-normalization raw string, and probe;-parameter and/.//shapes when the edge proxy passes semicolons/dot-segments through; plus@angular/routerunconfigured empty-path outlet-group recursion SSR heap DoS (/shop/(a:/()//b:/()//...)re-instantiates ActivatedRouteSnapshot trees per outlet; GHSA-62vg-58rm-qff7 / CVE-2026-111752, fixed 22.2.1), outlet-segment grammar is attacker-controlled input to SSR route matchers, worth a low-rate single-request probe on any Node SSR target. Same-family follow-up (tracked, no standalone page):@angular/routerRouterLinkqueryParamsHandling: 'merge'/'preserve'SSR heap-retention DoS (GHSA-57xq-rjx2-v5xh / CVE-2026-111751, affected v21.2.0 signal refactor→fixed 22.2.1/21.2.25), the per-link computed signal pins each mergedUrlTreefor the request lifetime, so heap retention = links x parsed-query-map size, with numeric parameter names triggering dense V8 property-storage (~558 KB vs ~197 KB per dictionary); fingerprint: concurrent oversized-?0&17&34…requests against SSR pages rendering merged links, crash only under overlapping in-flight requests.
October 20 21:1xZ follow-up: Angular HttpClient XSRF token attachment, regex absolute-URL gate vs WHATWG URL parser (incomplete fix lineage) (CVE-2026-111753 / GHSA-jfgx-762w-99vr, ≤21.0.2 / 20.3.x <20.3.34; 19.x unpatched)¶
The CVE-2025-66035 fix put ABSOLUTE_URL_REGEX = /^(?:https?:)?\/\//i in xsrfInterceptorFn to skip attaching X-XSRF-TOKEN on absolute/protocol-relative URLs. Browsers don't use that regex, fetch()/XHR.open() resolve via the WHATWG URL parser, which for http(s) treats \ as / (/\evil.test, \/\/evil.test, https:\\evil.test), strips leading C0/space characters (' //evil.test', '\0//evil.test'), and deletes tab/LF/CR anywhere (/t/evil.test, htt\tps://evil.test). Every shape fails the regex, gets stamped as same-origin, and ships the XSRF token cross-origin. The 21.x fix replaced the regex with a real new URL(req.url, locationOrigin) origin comparison, this page's canonical cure, applied two LTS generations after the first patch.
- Durable rule: any
startsWith/regex "is this absolute/same-origin" test guarding header attachment is a WHATWG differential, battery per scheme-normalization class: backslash forms, leading\0/space/C0, embedded\t\n\r, protocol-relative with dot-segments. The 19.x branch remains unpatched, so fingerprint the major version before concluding the class is closed. Pair with this page's Oct 20@angular/platform-serversibling (guard runs pre-normalization), two Angular legs same day, one gate-skipping by decode count, one by parse-count. - Same-wave tracked no-publish: Pillow nine-leg wave 20:40-20:56Z (CVE-2026-112403 critical JPEG heap overflow, TIFF tiled/short-strip/ColorMap OOB-read pair leaking heap into pixels, PDF page-tree/trailer unbounded recursion as an incomplete fix for CVE-2026-42310, recursion-depth regressions on previously-CVE'd parsers are re-probe triggers; EPS
load(scale)lets Ghostscript render past the decompression-bomb limit, the wrapper/engine split again, folded context on the Sept 20 media-pipeline page; GIF-seek DoS retains rejected size afterDecompressionBombError), memory-safety/DoS class per parser precedent, tracked without publication; markdown-it quadratic multi-line link-reference-definition render regression since 14.0 (gfr2/CVE-2026-111758, known ReDoS class); Cachet stored XSS, Angular sibling re-listings.
November 15 follow-up: OkHttp CertificatePinner skips the pin check on trailing-dot hostnames (CVE-2026-129482 / GHSA-p22c-cv6w-qc6x, medium, through 5.5.1)¶
Pin.matchesHostname compares the configured pin pattern against the request hostname without normalizing the trailing dot. api.example.com. (FQDN form) matches no configured pin for api.example.com, and the matcher's "no pin applies to this host" branch means no pin check runs at all, rather than a failure. A network attacker holding any CA-trusted certificate (not the pinned one) intercepts TLS traffic for applications that request the trailing-dot form of a pinned host. The escape hatch is the classic one: the gate encodes "host not in my list" as skip, and an input the list author never imagined walks straight through the skip door.
- Durable rule: an allowlist miss that means "skip the check" is a bypass surface; an allowlist miss that means "reject" is a control. For every pin/allowlist/verification matcher, enumerate inputs the pattern author never types: trailing dot (
host.), uppercase host, IDN/punycode twins, embedded whitespace. If any of them routes to the no-match/skip branch instead of the fail branch, the control is optional for inputs outside the author's mental model. Probe both legs: requesthttps://api.example.com./healththrough a proxy holding a different CA cert; pinned-form request fails (proof the pin works), trailing-dot request succeeds (proof of the differential). - Reachability note: the client must actually issue the trailing-dot form, so realistic targets are apps building URLs from user- or config-supplied host strings, DNS-driven hostnames, and SDKs that preserve an FQDN from a CNAME/A record. On bug-bounty mobile/API work, grep client code and config for host strings that can carry
.; the attacker-influenced host shapes from this page's standing battery apply here too. - Validation boundaries: your own app or an owned SDK harness pointed at a lab server with two certs (one matching the pin, one merely CA-trusted); never intercept real users' traffic.
November 18 follow-up: ArangoDB auth gate reads the raw path, dispatcher reads the decoded path (%5f-prefixed /_api/* = unauthenticated superuser) (CVE-2026-126755 / GHSA-pvg4-7m6q-pqg3, critical 9.8, before 3.12.11)¶
ArangoDB's authentication layer matched protected routes against the raw request path while the router dispatched on the URL-decoded path. GET /_db/_system/%5fapi/simple/first-example fails the gate's /_api/ prefix test (the literal %5f is not _) but dispatches to /_api/simple/first-example as superuser, with no authentication. The advisory records active exploitation first observed by Shadowserver on 2026-09-16, so this class is being scanned in the wild.
- Durable rule: on any gate-vs-router split, the gate must see the same representation the router sees. Enumerate representations, not just characters. This is the Mailpit percent-encoded-path lineage, upgraded with the decisive detail: the protected marker here is an underscore-prefixed namespace (
/_api/,/_db/), and underscore-prefixed names are the universal "internal/private" convention (Python modules,_internal,/_debug, gRPC reflection). If the gate string-matches a prefix containing an underscore, slash, or dot, fuzz exactly that character:%5f_%5F%255f, plus%2e.%2f/shapes, at every position of the protected token, not just the start. - Encoding-target battery for auth gates: single-encode the discriminating byte (
%5f), double-encode (%255f), case-flip (%5F), unicode-fold twins (%ef%bd%bffullwidth where decoders accept them), and the raw byte where the transport allows. One representation passing gate and failing router is the finding; record the gate decision table (raw vs decoded vs re-encoded) as evidence. - Reachability shortcut for database/http-service bounty work: unauthenticated
curl http://target:8529/_db/_system/%5fapi/simple/first-example(or the sibling%5fapiverbs) returning a 200 document instead of 401 is the whole proof for this product. Generalize: for any admin/API namespace mounted under an underscore/prefix convention, try the percent-encoded-prefix request before spending time on credential guessing. - Validation boundaries: your own ArangoDB instance or authorized targets only; the superuser route class includes destructive and data-reading endpoints, so stop at the benign read example (
first-exampleon a synthetic collection) and never enumerate or read real databases through the bypass.
November 21 follow-up: devpi's two path legs, //-prefixed relpath reads and ..-named entities write (CVE-2026-134167 / GHSA-9v42-896j-w5fc high + CVE-2026-134168 / GHSA-88mw-57h8-v25g medium)¶
A coordinated two-advisory wave hit the devpi private PyPI index from opposite sides of the same missing primitive: neither the read path nor the write path confines an attacker-influenced name to its storage root.
- Read leg (devpi-web < 5.2.0, unauthenticated): the
+docdocumentation route passes a request-suppliedrelpaththroughdocs_file_exists/docs_file_pathindoczip.pywith no confinement check, and the leading//form plus percent-encoded..segments escape the documentation directory to read server files, including thekeyfssqlite database holding password hashes. The leading-double-slash form matters twice: many string "starts with root" checks normalize..but treat//as an absolute-path signal their join logic mishandles, and many WSGI/router layers strip one leading slash before the handler ever sees the path, so the guard and the filesystem consumer disagree about what the path starts with. - Write leg (devpi-server < 6.21.0, any registered user): self-registering a user literally named
..and creating a..index makes the release-upload path joinuser/indexcomponents onto the+filesstorage root, so upload with attacker-chosen filename and content lands in a parent of the server directory. The name field is validated for uniqueness, never for traversal, because nobody expects a primary-key value to be... - Durable rule: inventory every identifier that gets string-joined into a filesystem path, then type it as the payload. Entity names (usernames, namespaces, index names, slugs, filenames) that reach
os.path.join/Path /are path components wearing identity-clothes. Battery per sink:..,...,%2e%2e%2f,%252e%252e%252f, leading//, absolute/etc/passwdshape, backslash twins on Windows hosts. Read sinks get the canary-file differential; write sinks get a marker file in a disposable parent, never real config. - Pair-the-directions heuristic: when a product shows a traversal bug in one direction, immediately test the mirror direction on the same storage layout. Unauthenticated read here, low-priv write there; both shipped in the same release cycle because both code paths re-implemented (or skipped) their own containment. One confirmed path bug on a product is a lead, not a finding.
- Target relevance for bounty work: self-hosted package indexes (devpi, devframe-family proxies, Verdaccio, Artifactory, Nexus) routinely sit inside perimeters with weaker edge auth than web apps, and their storage roots neighbor indexes, key material, and credential stores. The
+docunauth read reachingkeyfspassword hashes is a full account-takeover precursor against a private PyPI mirror that CI systems authenticate to.
November 24 follow-up: Symfony HttpFoundation path-leg trio, script-name prefix strip, client-chosen base URL, and the x:// scheme-lookalike that defeats Path::isBasePath (3 GHSAs, CVE-2026-135801/135802/135803, fixed 7.4.23 / 8.1.11, 6.4 LTS affected)¶
A coordinated three-advisory wave against symfony/http-foundation and symfony/filesystem puts a canonical differential under every path decision a Symfony app makes: what the router thinks the path is, what the generated URLs are, and what the confinement helper thinks the path is.
- Script-name prefix strip routes
/index.phpadminas/admin(GHSA-hjm2-6vvq-c899 / CVE-2026-135801). Since the CVE-2025-64500 fix,Request::getPathInfo()stripsSCRIPT_NAMEfrom the URI start even when it is only the prefix of a longer segment: withSCRIPT_NAME=/index.php,/index.phpadminyields path info/admin, and encoded spellings/index%2Ephpadmin,/%69ndex.phpadminwork too. Symfony's ownaccess_control/firewalls read the same path info as the router, so they stay consistent; what breaks is every rule enforced in front of PHP: an nginxlocation /admindeny block, an Apache<Location /admin>, or a CDN/WAF path rule written for/adminnever sees this request, while the app serves/admin. The 7.4.23/8.1.11 fix strips the script name only when followed by/,?, or end-of-URL. Operator test: request/index.phpadmin,/index%2Ephpadmin,/%69ndex.phpadmin(and dot-segment twins) against any edge rule protecting a path prefix, plus the reverse control/index.php/admin(blocked by the documented nginx/apache-pack configs); a 200-class admin response on the first shape while the second is blocked at the edge is the whole finding. Rule: front-of-app path rules (nginx location, WAF rule, CDN ACL) are only as good as the slowest parser's normalization, and the app's own routing doc is the parser spec. When a framework had a recent path-info CVE, the fix itself is new attack surface; incomplete-fix differentials around script-name/front-controller shapes belong in the battery. getBaseUrl()lets the client choose the base URL, and generated links inherit it (GHSA-x625-mp64-q79h / CVE-2026-135802). WhengetBaseUrl()cannot find the script name at the start of the URI, it searches further into the path (support for rewrite-everything configs); the base URL then keeps everything before that match, and the client picks it.https://app.example//evil.example/public/index.php/loginroutes to/loginwith base path//evil.example/public, sopath()links, formactions (a login form POSTs credentials toevil.example),redirectToRoute()targets, and relativeasset()references all point at the attacker host.framework.trusted_hostsdoes not help because the Host header is genuine. Preconditions: front controller in a subdirectory with a root.htaccessrewriting everything intopublic/, or nginx configs that setSCRIPT_NAMEfrom the request path. Rule: any value the framework derives from the request URI and feeds into generated output (links, form actions, redirects, asset URLs) is a self-XSS-class sink even with zero injected markup; the protocol-relative//evil.example/prefix is the first shape to try on every login form, search page, and redirect endpoint on subdirectory-front-controller apps. Lure-and-capture proof uses your own collector; the form-action CSP page's two-stage self-post applies when CSP blocks the direct exfil.Path::split()treats anyfoo://prefix as a root, PHP treats only real stream wrappers as schemes;isBasePathsays yes,fopenopens outside (GHSA-3gqv-8wv6-5qw7 / CVE-2026-135803).Path::isBasePath('/base', '/base/../x://../secret.txt')returns true because everything before the first://is taken as an opaque root whose..segments are never resolved, while PHP sees a plain local path that resolves to/secret.txt. Same skew incanonicalize(),join(),makeAbsolute(),makeRelative(). Live exploitation leg shipped in-core: on 6.4+ the AssetMapper component builds remote-package CSS asset paths withPath::join(), so a malicious package'surl(../../../../../public/x://shell.php)makesimportmap:require/installwrite outsideassets/vendor, intopublic/x:/shell.php. Fix: a prefix is a scheme only where PHP would look for a stream wrapper (two-plus letters/digits/+/-/., at string start). Rule: confinement helpers that special-case scheme-like prefixes are a differential against the language runtime's own scheme semantics; battery per helper:/base/../x://../canary,x:/single-slash twin, real wrapper names (phar://,file://,compress.zlib://) to find wrapper-side siblings, and always confirm the guard verdict against the actual open() target with a canary file, never trust the helper's boolean. Composer-install-time package trust (the AssetMapper leg) also means a compromised-but-not-malicious-looking upstream package is a build-artifact writer, so treatimportmap:requireoutput paths as reviewable diffs in CI hunting.- Same-wave tracked no-publish:
symfony/json-crawler746f/CVE-2026-135804 (per-start-positionpcre.backtrack_limitreset under an unanchored pattern, quadratic filter-operator scan, and re-evaluated$-absolute subqueries keep a 2 MB doc + 2.5 KB query at 3.5 min CPU despite the CVE-2026-45756 fix: a reusable mitigation-budget differential pattern (limits applied per-attempt not per-call), but availability-only, tracked here as a fingerprint note for any JSONPath-evaluating app you legitimately reach). - Validation boundaries: your own Symfony lab app with the documented nginx/apache-pack config,
example.invalidas the evil origin, your own POST collector, and canary files under disposable roots; never drive real users' login forms. Genealogy: ArangoDB raw-vs-decoded gate (Nov 18 leg), OkHttp skip-on-miss (Nov 15 leg), devpi two-legs (Nov 21 leg), this page's standing regression battery.
What to report¶
- The gate and the router, and which representation each uses
- The exact input form that bypasses the gate while still reaching the sink
- The control pair (block vs bypass) with status codes / handshake results
- The affected version/build and the first patched version
- Impact scoped to the real user context
- Minimal proof (a benign marker or upgrade result), no real-user targeting, no exfiltration
Heuristics that catch weak fixes¶
Flag fixes that only change the representation the gate tests instead of making the gate and router agree:
strings.HasPrefix(r.RequestURI, webroot+"api/") // raw wire target, not decoded
r.URL.RawPath != "" && allow(prefix(RawPath)) // RawPath vs Path
if host := r.Host; allowlist[host] // Host vs SNI vs :authority
allow = strings.HasPrefix(loc, "/") // no //, backslash, or double-decode reject
CheckOrigin: return true // control moved out, not added
Useful regression inputs (keep to lab / owned hosts only):
/%61pi/events # %61 = 'a'
/%2561pi/events # double-encoded
/\\example.invalid/x # backslash router collapse
//example.invalid/x # protocol-relative collapse
/%2f%2fexample.invalid # encoded slash collapse
JaVaScRiPt:alert(1) # mixed-case scheme
Safe boundaries¶
- Keep testing in lab instances or explicitly authorized systems; use
example.invalid/ owned hosts. - Prove the gate bypass with a control pair and a benign marker; do not exfiltrate, target real users, or read real mail/data.
- Do not send crafted upgrade/redirect links to other users.
- Stop at proof of the representational differential unless the engagement explicitly permits deeper impact.
Sources¶
- GitHub Advisory Database: Mailpit GHSA-8r62-w5wh-fc5m / CVE-2026-67448, WebSocket origin check bypass via percent-encoded path (regression of CVE-2026-22689)
- GitHub Advisory Database: Mailpit GHSA-r553-m4fv-5v97 / CVE-2026-67447, SMTP DATA line buffered before size enforcement (availability-only; reviewed, not promoted)
- GitHub Advisory Database: gettext-converter GHSA-f4jp-rw7w-ccwg / CVE-2026-55451, prototype pollution in
js2i18next()(app-dependent; reviewed, not promoted) - Return URL scheme-bypass testing, same representational-drift class pointed at redirect sinks
- Mailpit advisories: https://github.com/axllent/mailpit/security/advisories
- GitHub Advisory Database: devpi-web GHSA-9v42-896j-w5fc / CVE-2026-134167, unauthenticated
+docpath traversal - GitHub Advisory Database: devpi-server GHSA-88mw-57h8-v25g / CVE-2026-134168,
..-named user/index write outside+filesroot
November 23 follow-up: Dashy's isLocalRequest prefix-matches origins so a lookalike host inherits your bearer token; VoidAuth's domain rules decode away under percent-encoding (2 legs)¶
- Dashy 4.0.0 before 4.9.12, prefix-only origin check ships stored credentials to lookalike hosts (GHSA-5rg5-x2hf-c229 / CVE-2026-134836, high):
isLocalRequestdecides whether to attach user credentials (bearer token / HTTP auth headers) using a prefix-only origin comparison, so a crafted host that merely starts with the trusted origin string is treated as local. Lure a logged-in admin to a?config=link pointing at the lookalike and the token rides along: read config and stored API keys, or modify them with admin rights. Rules: (1) origin comparisons are equality-or-nothing:startsWith,includes,indexOf >= 0, and "hostname contains product name" are all bypassable by appending suffix characters (dashy.example.com.evil.testpasses astartsWith("dashy.example.com")check;localhost.evil.testpasses astartsWith("localhost")check); (2) the battery is the standard suffix/lookalike set: append-dot,.-suffixed attacker domain,--suffixed, userinfo@trick, and the trailing-dot twin already on this page from the OkHttp leg; (3) when any client-side app attaches Authorization material based on a URL test, that test is the perimeter, capture-the-header proof with your own token against your own collector. - VoidAuth before 1.19.2, stricter ProxyAuth domain rules evaded by percent-encoded separators (GHSA-x6jf-79r5-273h / CVE-2026-134802, high): path-based access rules match the encoded request target while the reverse proxy/backend decodes
%2f,%5c,%3band dot segments before routing, so encoded-slash variants match a broader rule and land in restricted paths. This is the Mailpit leg's shape (gate on raw, router on decoded) reappearing in the authentication-proxy layer, and a reminder that the%25xxdouble-decode twins belong in the battery whenever a proxy sits in front of the backend. Prove on your own lab auth gateway with marker routes only.
November 24 follow-up: Pangolin's public-bypass matcher splits on literal slashes only, so %2F..%2F walks out of the exempt prefix while the backend serves the protected path (CVE-2026-136132 / GHSA-vg9w-pr99-7q53, critical, before 1.21.0)¶
- Pangolin before 1.21.0, tunnel-manager path-rule bypass via encoded slashes and dot segments:
isPathAllowed()inserver/lib/pathMatch.tsdecided public-exemption by splitting the request path on literal/characters only, with no percent-decoding and no./..resolution. A request like/public%2F..%2Fadmin(or/public/./../adminvariants) matched the wildcard rule for a public-exempt prefix, so Pangolin's auth gate waved it through, while the upstream backend percent-decodes and resolves dot segments itself and serves the protected path. The fix (commit 9561d23f) addsdecodeAndResolvePath(): decode each segment first, then split the decoded value on/again (an encoded slash becomes a real separator, "matching what most backends will do"), then pop..segments. That fix comment is the whole lesson restated by the vendor: the gate must parse the way the backend parses. - Rules: (1) Any reverse proxy, tunnel manager, or WAF with "public paths" rules is a two-parser system: the matcher's path grammar and the origin's path grammar. If the matcher does not percent-decode and collapse dot segments, every exempt-prefix wildcard is a traversal entry point. Battery per exempt prefix:
<prefix>%2F..%2F<protected>,<prefix>%2f.%2f./../<protected>,<prefix>/./../<protected>, double-encoded%252ftwins, and backslash%5cvariants; diff against the plain protected path (401/403 expected) and the plain exempt path (200 expected) as the control pair. (2) Wildcard semantics matter after decoding: pre-fix,%2Fstayed inside one segment, so a*-suffix rule that "should" only cover children of/public/was satisfied by a string that the origin reparses as escaping the prefix entirely. Enumerate every exempt/wildcard rule from config (or by probing known public paths), then replay the battery against each. (3) Same-product genealogy: this is the ArangoDB raw-vs-decoded gate (Nov 18 leg) and VoidAuth (above) at the tunnel layer, with the added twist that Pangolin tunnels to arbitrary customer backends, so the origin parser is outside the product's control, making "the backend will decode it differently" the default state, not an edge case. - Validation boundary: lab Pangolin instance with your own origin server and a marker protected route; prove 401-vs-200 differential on the encoded-traversal pair only; never replay against production tunnels.
November 24 second follow-up: browser-use SecurityWatchdog checks URLs with one parser while Chromium navigates with another, userinfo and backslash walk the LLM browser to any host (2 GHSAs, before 1.0.0)¶
- browser-use before 1.0.0, the LLM-browser guard is a two-parser system where the attacker steers the second parser. GHSA-4vv7 / CVE-2026-136453 (high):
SecurityWatchdog._is_url_matchenforcedallowed_domainswith a raw-stringstartswith()on the URL instead of parsed-hostname equality, sohttps://trusted.com@attacker.com/(userinfo injection) andhttps://trusted.com.attacker.com/(domain-prefix confusion) both passed the allowlist, and a prompt-injected navigate action delivered secrets embedded in the approved-looking URL to the attacker host. GHSA-2jhq / CVE-2026-136452 (medium): a URL with a backslash before the host parsed differently underurllib.parse(guard's view) than under Chromium's WHATWG parser (browser's view), soallowed_domains,prohibited_domains, andblock_ip_addressesall evaluated one destination while the navigation went to another, reaching loopback/private addresses or arbitrary external hosts before the tab settled onabout:blank. - Rules: (1) Agent/browser allowlists are gate-vs-engine parser differentials: the guard uses a Python/JS URL library, the engine uses the browser stack. Battery per allowlisted host: userinfo
@, domain-prefix suffix (allowed.tld.attacker.test), backslash-before-authority (https:\\allowed.tld), and the encoded twins; success shape is a callback hit from the browser where the guard logged "allowed". (2) Anything that lets untrusted content influence the agent's navigate arguments (page text, tool results, emails the agent reads) is the prompt-injection delivery channel, so the URL battery belongs in agent-tooling assessments even when every guard unit test passes. (3)startswithon URLs is always wrong, same rule as the Dashy origin leg above; equality on parsed hostname (plus port/scheme decision table) is the only pass shape. - Validation boundary: your own lab agent, your own callback domain, and synthetic loopback markers; never steer a deployed agent at third-party hosts or live internal services.