{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.21.0"
                  },
                  {
                    "fixed": "1.22.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "9e6625444060735abea0c2bc250baff5d52c7537"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "9b94ab9fdad9f29d45682f3c116a633371a388c7"
            },
            {
              "fixed": "9e6625444060735abea0c2bc250baff5d52c7537"
            }
          ],
          "repo": "https://github.com/ncarlier/webhookd",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-9g3f-ppc3-jx8p"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142243.json"
  },
  "details": "Ncarlier webhookd from 1.21.0 before 1.22.1 contains a path traversal vulnerability in ResolveScript() that allows remote attackers to execute programs outside the hook scripts directory by bypassing a strings.HasPrefix containment check. Attackers who satisfy configured hook authentication can send an encoded ../ path targeting a sibling directory sharing the scripts prefix, running executables with the request body as input as the webhookd user.",
  "id": "CVE-2026-142243",
  "modified": "2026-12-02T23:46:12.714074633Z",
  "published": "2026-12-02T16:49:59.197Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142243.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ncarlier/webhookd"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ncarlier/webhookd/blob/v1.22.0/pkg/hook/helper.go#L11-L18"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ncarlier/webhookd/blob/v1.22.0/pkg/hook/job.go#L197-L203"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ncarlier/webhookd/commit/9e6625444060735abea0c2bc250baff5d52c7537"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ncarlier/webhookd/security/advisories/GHSA-9g3f-ppc3-jx8p"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142243"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/ncarlier-webhookd-1.21.0-before-1.22.1-path-traversal-rce-via-resolvescript"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Ncarlier webhookd 1.21.0 before 1.22.1 Path Traversal RCE via ResolveScript"
}