# GHSA-w9mr-28mw-j8hg: Hop-by-hop abuse to malform header mutator

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-04-26T19:44:00.000Z
- Modified: 2026-03-03T04:53:39.539Z
- Also known as: GO-2023-1747

## Description

### Impact

Downstream 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:

```yaml
- id: 'example'
  upstream:
    url: 'https://example.com'
  match:
    url: 'http://127.0.0.1:4455/'
    methods:
      - GET
  authenticators:
    - handler: anonymous
  authorizer:
    handler: allow
  mutators:
    - handler: header
      config:
        headers:
          X-Subject: {{ .Subject }}
```

```
curl -H "Connection: close,x-subject" http://127.0.0.1:4455/
```

The `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.

### Patches

c5cc7f736dc84185034be4356057d1c7a656d797

### Workarounds

The downstream server should handle the case that an expected header is not set by responding with an appropriate error.

### References

See background info in https://github.com/golang/go/issues/50580

(As written by GitHub Advisory Database.)

## Affected

- github.com/ory/oathkeeper (Go): before 0.40.3

## References

- <https://github.com/ory/oathkeeper/security/advisories/GHSA-w9mr-28mw-j8hg> (advisory, web)
- <https://github.com/ory/oathkeeper> (package)

## Sources

- GitHub Advisory Database: [GHSA-w9mr-28mw-j8hg](https://github.com/advisories/GHSA-w9mr-28mw-j8hg), CC-BY-4.0, modified 2024-08-20
- Go Vulnerability Database: [GO-2023-1747](https://pkg.go.dev/vuln/GO-2023-1747), CC-BY-4.0, modified 2026-03-03

---

Page: https://cve.day/GHSA-w9mr-28mw-j8hg · Whole record: https://cve.day/GHSA-w9mr-28mw-j8hg.json · Rebuilt by cve.day 2026-11-25T22:56:23.494Z
