{"id":"GHSA-w9mr-28mw-j8hg","aliases":["GHSA-w9mr-28mw-j8hg","GO-2023-1747"],"related":[],"kind":"vulnerability","state":"published","title":"Hop-by-hop abuse to malform header mutator","summary":"### Impact\n\nDownstream services relying on the presence of headers set by the `header` mutator could be exploited. A client can drop the header set by the `header` mutator by including that header's name in the `Connection` header. Example minimal config:\n\n```yaml\n- id: 'example'\n  upstream:\n    url: 'https://example.com'\n  match:\n    url: 'http://127.0.0.1:4455/'\n    methods:\n      - GET\n  authenticators:\n    - handler: anonymous\n  authorizer:\n    handler: allow\n  mutators:\n    - handler: header\n      config:\n        headers:\n          X-Subject: {{ .Subject }}\n```\n\n```\ncurl -H \"Connection: close,x-subject\" http://127.0.0.1:4455/\n```\n\nThe `X-Subject` header will not arrive at the downstream server. It is completely dropped. In case the downstream server handles such a request in an unexpected way, an attacker can exploit this, assuming they know or guess the internal header name.\n\n### Patches\n\nc5cc7f736dc84185034be4356057d1c7a656d797\n\n### Workarounds\n\nThe downstream server should handle the case that an expected header is not set by responding with an appropriate error.\n\n### References\n\nSee background info in https://github.com/golang/go/issues/50580","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nDownstream services relying on the presence of headers set by the `header` mutator could be exploited. A client can drop the header set by the `header` mutator by including that header's name in the `Connection` header. Example minimal config:\n\n```yaml\n- id: 'example'\n  upstream:\n    url: 'https://example.com'\n  match:\n    url: 'http://127.0.0.1:4455/'\n    methods:\n      - GET\n  authenticators:\n    - handler: anonymous\n  authorizer:\n    handler: allow\n  mutators:\n    - handler: header\n      config:\n        headers:\n          X-Subject: {{ .Subject }}\n```\n\n```\ncurl -H \"Connection: close,x-subject\" http://127.0.0.1:4455/\n```\n\nThe `X-Subject` header will not arrive at the downstream server. It is completely dropped. In case the downstream server handles such a request in an unexpected way, an attacker can exploit this, assuming they know or guess the internal header name.\n\n### Patches\n\nc5cc7f736dc84185034be4356057d1c7a656d797\n\n### Workarounds\n\nThe downstream server should handle the case that an expected header is not set by responding with an appropriate error.\n\n### References\n\nSee background info in https://github.com/golang/go/issues/50580","format":"markdown","source":"ghsa"},{"lang":"en","text":"Hop-by-hop abuse to malform header mutator in github.com/ory/oathkeeper","format":"markdown","source":"go"}],"published":"2023-04-26T19:44:00.000Z","modified":"2026-03-03T04:53:39.539Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.40.3"}],"ecosystem":"Go","package":"github.com/ory/oathkeeper","purl":"pkg:golang/github.com/ory/oathkeeper","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.40.3"}],"ecosystem":"Go","package":"github.com/ory/oathkeeper","purl":"pkg:golang/github.com/ory/oathkeeper","source":"go"}],"references":[{"url":"https://github.com/ory/oathkeeper/security/advisories/GHSA-w9mr-28mw-j8hg","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/ory/oathkeeper","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w9mr-28mw-j8hg","url":"https://github.com/advisories/GHSA-w9mr-28mw-j8hg","licence":"CC-BY-4.0","modified":"2024-08-20T20:59:07.014Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-1747","url":"https://pkg.go.dev/vuln/GO-2023-1747","licence":"CC-BY-4.0","modified":"2026-03-03T04:53:39.539Z"}],"updatedAt":"2026-11-25T22:56:23.494Z"}