CVE-2026-59157

Source
https://cve.org/CVERecord?id=CVE-2026-59157
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59157.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-59157
Aliases
Published
2026-09-15T15:46:35Z
Modified
2026-09-18T03:30:52Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-290",
        "CWE-807"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59157.json"
}
References

Affected packages

Git / github.com/ncarlier/webhookd

Affected ranges

Type
GIT
Repo
https://github.com/ncarlier/webhookd
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.22"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.8.0
v0.*
v0.0.1
v0.0.2
v0.0.3
v1.*
v1.0.0
v1.0.1
v1.1.0
v1.10.0
v1.11.0
v1.12.0
v1.13.0
v1.14.0
v1.15.0
v1.15.1
v1.16.0
v1.17.1
v1.17.2
v1.17.3
v1.18.0
v1.19.0
v1.2.0
v1.2.1
v1.20.0
v1.20.1
v1.20.2
v1.21.0
v1.3.0
v1.3.1
v1.3.2
v1.4.0
v1.5.0
v1.5.1
v1.6.0
v1.6.1
v1.7.0
v1.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59157.json"