Medium, CVSS 6.5GoAmendedPublished
webhookd: Unrestricted HTTP Header to Shell Variable Injection
CVE-2026-59157 · GHSA-v25g-mvwr-f5fp
- Affected
- Go github.com/ncarlier/webhookd < 1.22.0
- Fixed in
- 1.22.0· Vendor fix available
- Issue
- Before 1.22, if the Basic Auth (htpasswd) middleware was not configured, all incoming HTTP headers were blindly forwarded to the webhook script execution environment as shell variables. While the Basic Auth middleware correctly strips the authentication header (X-WebAuthn-User) from the incoming request before conditionally re-injecting it on successful authentication, disabling Basic Auth left the system vulnerable if deployed behind an unhardened reverse proxy. Impact If an upstream reverse proxy is not properly hardened to strip client-provided authentication headers, an attacker could manually supply these headers (e.g., X-WebAuthn-User). A webhook script relying on this forwarded header for privilege elevation or identity verification could therefore be exploited to bypass security controls and impersonate other users. Mitigation The WHDALLOWEDUPSTREAMHEADERS configuration setting has been introduced to enforce a strict allowlist of HTTP headers that can be converted…
Recommended action: Upgrade to 1.22.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.