GHSA-rhg6-2vjh-j5qc: Duplicate Advisory Authentication Bypass Vulnerability
HIGHGHSA-rhg6-2vjh-j5qc is a HIGH authentication bypass vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves traefik: authentication bypass via path traversal in replacepathregex middleware. Remediation is available in the latest vendor maintenance releases.
GHSA-rhg6-2vjh-j5qc at a Glance
How to Fix GHSA-rhg6-2vjh-j5qc
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/traefik/traefik/v2 to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/traefik/traefik/v2
How to Check if You Are Affected
To determine whether your application is affected by GHSA-rhg6-2vjh-j5qc, inspect your project dependencies for Duplicate Advisory:
inspect dependencies for github.com/traefik/traefik/v2
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-rhg6-2vjh-j5qc Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/traefik/traefik/v2
|
Go |
≤ 2.11.51
|
|
References
Frequently Asked Questions
What is GHSA-rhg6-2vjh-j5qc?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-rhg6-2vjh-j5qc?
Is github.com/traefik/traefik/v2 affected?
What CWE is associated with GHSA-rhg6-2vjh-j5qc?
How can I check Go dependencies for GHSA-rhg6-2vjh-j5qc?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rhg6-2vjh-j5qc",
"modified" : "2026-08-06T16:50:45Z",
"published" : "2026-07-22T12:32:18Z",
"withdrawn" : "2026-08-06T16:50:45Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Traefik: Authentication Bypass via Path Traversal in ReplacePathRegex Middleware",
"details" : "## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-cxjq-mrr5-89rv. This link is maintained to preserve external references.\n\n## Original Description\nTraefik versions <= v2.11.51, >= v3.6.0 <= v3.6.22, and >= v3.7.0 <= v3.7.6 contain an authentication bypass via path traversal in the ReplacePathRegex middleware. When ReplacePathRegex is configured with a regex that captures user-controlled path segments without a mandatory path separator (e.g. regex \"^/api(.*)\", replacement \"/$1\"), the middleware forwards the replaced path to the backend without validating that it matches its normalized form. An unauthenticated remote attacker can send a crafted request (e.g. GET /api../admin) that produces an un-normalized path such as /../admin, which a backend that normalizes paths resolves to a protected route, bypassing authentication middleware. Fixed in v2.11.52, v3.6.23, and v3.7.7.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/traefik/traefik/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.11.51"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/traefik/traefik/security/advisories/GHSA-cxjq-mrr5-89rv"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-65600"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/traefik-before-authentication-bypass-via-replacepathregex"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-06T16:50:45Z",
"nvd_published_at" : "2026-07-22T12:18:20Z"
}
}