News Analysis 9 min read

Pangolin Encoded Paths Break The Access Boundary

Pangolin path rules could misread encoded traversal while backends served protected content. Upgrade, test raw paths and review edge logs.

By Protocol Report Editorial | Updated November 25, 2026
An amber encoded public path crosses an access gateway and reaches a private backend while a cyan path normalizes segments, rejects traversal, updates the gateway, preserves request logs and keeps the backend isolated
Short Version

Pangolin versions before 1.21.0 could evaluate one representation of a request path while a protected backend served another. A path-based `Bypass Auth` rule might accept a request under a public prefix because Pangolin split only on literal slashes. Its default Traefik configuration allowed encoded slashes, and a backend could decode those separators plus `..` segments into a protected path. The public proof used a request shaped like `public%2F..%2Fadmin` to reach content that normally required authentication. The advisory does not report active exploitation.

Upgrade every Pangolin deployment to at least 1.21.0 and preferably a current supported stable release. The fix percent-decodes path segments, splits separators created by decoding and resolves dot segments before matching policy. Preserve raw edge requests and backend logs, search for encoded separators and traversal patterns, and identify every public resource using path-based authentication bypasses. A version update closes the known comparison flaw but does not reveal what an old gateway may already have served.

Key Takeaways

  • check_circle GHSA-5h3v-3645-78xj rates the flaw Critical at CVSS 4.0 9.2; CVE-2026-136132 was published on November 24.
  • check_circle The vulnerable condition combines Pangolin before 1.21.0, a path-based access rule and a backend that decodes encoded separators or traversal differently.
  • check_circle The attack is unauthenticated and needs no user interaction, but it exposes only routes reachable through the affected rule and backend interpretation.
  • check_circle Pangolin 1.21.0 shipped in July and contains the fix, so this is a newly public defect with an older available remediation, not a newly released emergency patch.
  • check_circle The patch normalizes the request before authorization and adds regression tests for literal and encoded traversal in both directions.
  • check_circle Detection requires both edge and backend evidence because proxies, frameworks and logging layers may store different forms of the same path.

One Request Path Had Two Meanings

Pangolin publishes web resources through an access gateway and can apply rules to paths. A common design makes a public area available without authentication while keeping another area behind login. Before 1.21.0, the path matcher normalized a value by splitting it only on literal `/` characters and removing empty components. It did not first decode percent-encoded separators or resolve `.` and `..` segments.

The shipped Traefik configuration allowed encoded slashes. A request such as `public%2F..%2Fadmin` could therefore reach Pangolin with the encoded separators intact. The policy matcher saw a value beginning with the allowed public segment, while a downstream server could decode the separators, resolve the parent segment and serve `/admin`. The gateway authorized the string it saw; the backend acted on the path it derived.

The advisory demonstrates this against a public HTTP resource with authentication enabled and a `Bypass Auth` rule for `public/*`. The normal `/admin/` request was redirected to authentication, while the encoded traversal returned the administrator content. The researcher reports the same result on a hosted test and self-hosted Enterprise 1.20.0. That is a reproduced product flaw, not evidence of a real-world campaign.

Exposure Depends On Rules And Backend Behavior

The severity score describes an unauthenticated network path with high confidentiality impact, but not every Pangolin resource has the same exposure. A deployment needs an affected version and a path rule whose permitted prefix can be escaped. The protected backend must then interpret encoded separators or dot segments in a way that reaches a different route than Pangolin evaluated. Resources that require authentication for every path do not present this particular public-prefix transition.

Scope each resource individually. Record its FQDN, site, backend, public or private type, authentication method, path rules and the framework or server that ultimately handles the request. Include APIs and dashboards behind another internal reverse proxy. A second proxy can decode or normalize the path before the application, so testing only the final framework may miss the actual production interpretation chain.

Do not convert the advisory's confidentiality rating into unsupported impact. The published proof reads protected content; it does not demonstrate code execution, credential theft or modification on every backend. Those outcomes depend on what the bypassed route exposes. An administrative API, file browser or debug endpoint can still turn a read boundary failure into a larger incident through its own capabilities.

The Fix Authorizes The Canonical Path

Commit `9561d23` replaced the simple splitter with a decode-and-resolve function. For each raw segment, the code calls `decodeURIComponent`, splits any slash introduced by decoding, ignores a single-dot segment and removes the preceding segment for `..`. Policy matching then receives the resolved parts. The formerly ambiguous example becomes the protected `admin` path before the access decision is made.

The patch includes focused tests. Literal traversal out of `public/*` must fail, encoded traversal must fail regardless of hexadecimal case, traversal into an `admin/*` pattern must still match that protected rule, and a harmless encoded separator inside the public tree must continue to work. Those cases matter because a fix that only blocks one proof string can leave equivalent representations or break legitimate routes.

Pangolin lists every version before 1.21.0 as affected and 1.21.0 as patched. The release was published July 20, months before the November advisory and CVE record. Upgrade to at least that floor, but follow the project's current stable release guidance rather than pinning to the oldest fixed build. Back up the configuration, update the relevant images, restart the stack and verify both the live version and resource behavior.

Test The Whole Proxy Chain After Updating

A dashboard version check is necessary but insufficient. Send a matrix of requests through the same DNS, CDN, load balancer, Traefik entry point, Pangolin resource and backend used by real clients. Include normal public and protected paths, literal dot segments, encoded slashes in upper and lower case, encoded dot segments, repeated separators and application-specific rewrite rules. A protected route must never become public because one layer decoded earlier or later than expected.

Verify positive behavior too. Public paths that legitimately contain encoded characters should still reach the intended resource, while malformed encodings should fail consistently. Capture the status, redirect, authenticated identity and backend route for each case. Run the tests without a session cookie and from an external network so a cached login, internal allowlist or alternate route does not mask the boundary.

The Pangolin update guide warns that migrations can change the database and that downgrading may be impossible, so operators should back up the `config` directory first. It also notes that generated Traefik changes may not apply when local configuration differs from the default. Compare the running Compose images and Traefik configuration with the reviewed deployment, especially on older or heavily customized installations.

Hunt For The Raw And Resolved Request

Preserve reverse-proxy, CDN, Traefik, Pangolin and backend logs before rotating or normalizing them. Search raw request targets for encoded slash forms such as `%2f` and `%2F` near dot segments, along with literal traversal and unusual requests under paths covered by `Bypass Auth` rules. Expand the search to percent-encoded dots and nested encodings according to the syntax your own stack accepts. A clean search is weak evidence if the edge stored only a decoded path.

Correlate each suspicious edge request with the backend's normalized route, response status, byte count, source address, user agent and any authenticated session. Look for a public request followed by access to administrative endpoints, downloads, configuration reads, token creation or account changes. The absence of a Pangolin session can be important because the flaw specifically crosses an authentication boundary, but proxies may omit cookies or identity fields from standard logs.

If protected content was returned, scope the data and capabilities of that route. Revoke credentials or sessions exposed through it, preserve application evidence and review downstream actions. If a privileged endpoint allowed state changes, handle the event as an application compromise rather than a gateway-only patch. The public advisory provides no campaign infrastructure or exploitation indicators, so the investigation must be built from local evidence.

Reduce Split-View Authorization At The Edge

Authorization must operate on the same canonical request that the backend uses. RFC 3986 defines percent encoding and dot-segment removal, but real proxy chains can still disagree about when decoding happens. Keep as few path-rewriting layers as possible, document their order and reject ambiguous reserved characters when the application does not need them. Traefik's encoded-character controls are designed for this problem and warn about split-view behavior.

Do not change Pangolin's generated Traefik settings blindly. An encoded slash may be required for a legitimate application, and local changes can affect upgrades. Where testing shows it is safe, rejecting encoded slashes at an earlier edge is useful defense in depth. It does not replace the Pangolin update because other canonicalization differences and alternate ingress paths can remain.

For high-value administration surfaces, avoid relying on a public-path exception in front of both public and private routes. Separate them by resource or hostname, require authentication again at the backend and enforce least privilege on the application itself. Export raw access evidence to a system gateway administrators cannot alter. These controls make a path-parser disagreement a denied request instead of the only barrier protecting an administrative interface.

Checklist

  • Inventory every Pangolin instance and public HTTP resource with its running version, image digest, backend and path-based access rules.
  • Back up the Pangolin configuration and upgrade every affected deployment to at least 1.21.0 or a current supported stable release.
  • Verify the live version and compare customized Compose, Traefik and Badger configuration with the reviewed deployment files.
  • Test unauthenticated normal, encoded and dot-segment paths through the complete production proxy chain, not only against the backend.
  • Preserve raw edge and backend logs, then search for encoded separators, traversal sequences and protected-route responses without sessions.
  • Investigate data reads and state changes on any bypassed endpoint, revoking exposed credentials and sessions according to evidence.
  • Separate high-value administrative paths and require backend authentication so a gateway path rule is not the only security boundary.

Sources

Related Articles

Continue Reading