CVE-2026-59157

webhookd: Unrestricted HTTP Header to Shell Variable Injection

State
Published
Severity
6.5 Medium
Published
Sep 15, 2026
Updated
Sep 16, 2026
Reserved
Jul 2, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NGitHub_M

Weaknesses

  • CWE-290 Authentication Bypass by Spoofing
  • CWE-807 Reliance on Untrusted Inputs in a Security Decision

Affected Products

ProductVersions
webhookdncarlier
  • < 1.22Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.