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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-09-09T23:47:03.000Z
- Modified: 2026-09-30T17:51:56.193Z
- Also known as: GHSA-v25g-mvwr-f5fp, GO-2026-6451
- Weaknesses: CWE-290, CWE-807
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

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

## Sources

- CVE List: [CVE-2026-59157](https://www.cve.org/CVERecord?id=CVE-2026-59157), CVE Terms of Use, modified 2026-09-16
- GitHub Advisory Database: [GHSA-v25g-mvwr-f5fp](https://github.com/advisories/GHSA-v25g-mvwr-f5fp), CC-BY-4.0, modified 2026-09-17
- Go Vulnerability Database: [GO-2026-6451](https://pkg.go.dev/vuln/GO-2026-6451), CC-BY-4.0, modified 2026-09-17
- NVD: [CVE-2026-59157](https://nvd.nist.gov/vuln/detail/CVE-2026-59157), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-59157 · Whole record: https://cve.day/CVE-2026-59157.json · Rebuilt by cve.day 2026-11-25T22:59:38.561Z
