{"id":"CVE-2026-59157","summary":"webhookd: Unrestricted HTTP Header to Shell Variable Injection","details":"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.","aliases":["GHSA-v25g-mvwr-f5fp","GO-2026-6451"],"modified":"2026-09-18T03:30:52.898321916Z","published":"2026-09-15T15:46:35.418Z","database_specific":{"cwe_ids":["CWE-290","CWE-807"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59157.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/ncarlier/webhookd/releases/tag/v1.22.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59157.json"},{"type":"ADVISORY","url":"https://github.com/ncarlier/webhookd/security/advisories/GHSA-v25g-mvwr-f5fp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59157"},{"type":"FIX","url":"https://github.com/ncarlier/webhookd/commit/5ac66677bf7224191f1dfc51a875b09187d10beb"},{"type":"FIX","url":"https://github.com/ncarlier/webhookd/pull/121"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ncarlier/webhookd","events":[{"introduced":"0"},{"fixed":"5ac66677bf7224191f1dfc51a875b09187d10beb"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"1.22"}]}}],"versions":["v1.21.0","v1.20.2","v1.20.1","v1.20.0","v1.19.0","v1.18.0","v1.17.3","v1.17.2","v1.17.1","v1.16.0","v1.15.1","v1.15.0","v1.14.0","v1.13.0","v1.12.0","v1.11.0","v1.10.0","v1.9.0","1.8.0","v1.7.0","v1.6.1","v1.6.0","v1.5.1","v1.5.0","v1.4.0","v1.3.2","v1.3.1","v1.3.0","v1.2.1","v1.2.0","v1.1.0","v1.0.1","v1.0.0","v0.0.3","v0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59157.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"}]}