CVE-2026-59157 Details
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.
A vulnerability in webhookd, a minimalist webhook server, allows for user impersonation through HTTP header injection. This issue affects versions prior to 1.22.0 and arises when the htpasswd authentication middleware is not enabled. In such cases, incoming HTTP headers are forwarded to the webhook script environment without any filtering. If an upstream reverse proxy fails to remove certain headers, like 'X-WebAuthn-User', and the webhook script relies on these headers for authentication or authorization, an attacker could spoof a user's identity, bypassing security measures and potentially accessing or modifying resources tied to that user.
Users can upgrade to webhookd version 1.22.0 or later, where this vulnerability has been fixed. For those using version 1.22.0, it is recommended to configure the 'WHD_ALLOWED_UPSTREAM_HEADERS' environment variable to explicitly allow only the necessary headers. This variable should include 'x-webauthn-user' if upstream authentication via WebAuthn is used.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 15, 2026CISA-ADP
Assessed Sep 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ncarlier/webhookd/commit/5ac66677bf7224191f1dfc51a875b09187d10beb | [email protected] | Source CodeVendor |
| https://github.com/ncarlier/webhookd/pull/121 | [email protected] | Issue TrackingVendor |
| https://github.com/ncarlier/webhookd/releases/tag/v1.22.0 | [email protected] | Release NotesVendor |
| https://github.com/ncarlier/webhookd/security/advisories/GHSA-v25g-mvwr-f5fp | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-290 | Authentication Bypass by Spoofing | [email protected] |
| CWE-807 | Reliance on Untrusted Inputs in a Security Decision | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| webhookd | < 1.22 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 16, 2026 | CVE Modified | CISA-ADP |
| Sep 15, 2026 | New CVE Received | [email protected] |
Volerion