# CVE-2026-59157: webhookd: Unrestricted HTTP Header to Shell Variable Injection

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-15 · Modified: 2026-09-16
- Aliases: GHSA-v25g-mvwr-f5fp, GO-2026-6451
- Record: https://cvemate.com/vulnerability/CVE-2026-59157 · JSON: https://cvemate.com/vulnerability/CVE-2026-59157/json

## Description

```text
webhookd is a minimalist webhook server that triggers shell scripts and external processes through HTTP requests. Prior to 1.22.0, webhookd deployments without htpasswd authentication forwarded all incoming HTTP headers through HTTPParamsToShellVars in pkg/api/index.go into the hook script environment without an allowlist. When an upstream reverse proxy did not strip a client-supplied X-WebAuthn-User header and a hook script trusted that variable for identity or privilege, a remote unauthenticated attacker could spoof another user, bypass script security controls, and access or modify resources available to the impersonated identity. This issue is fixed in version 1.22.0.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.461%, percentile 41.668%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/ncarlier webhookd (Go): \< 1.22.0
- ncarlier webhookd: \< 1.22

## References

- <https://github.com/ncarlier/webhookd/security/advisories/GHSA-v25g-mvwr-f5fp>
- <https://github.com/ncarlier/webhookd/pull/121>
- <https://github.com/ncarlier/webhookd/commit/5ac66677bf7224191f1dfc51a875b09187d10beb>
- <https://github.com/ncarlier/webhookd/releases/tag/v1.22.0>
- <https://github.com/ncarlier/webhookd>

---

Data as of 2026-12-05T14:01:52.103Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
