{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.22"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5ac66677bf7224191f1dfc51a875b09187d10beb"
            }
          ],
          "repo": "https://github.com/ncarlier/webhookd",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-v25g-mvwr-f5fp"
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-59157",
  "modified": "2026-09-18T03:30:52.898321916Z",
  "published": "2026-09-15T15:46:35.418Z",
  "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"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "webhookd: Unrestricted HTTP Header to Shell Variable Injection"
}