{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "163246b7be03c4ad2e88860a437ca827810d73cc"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "163246b7be03c4ad2e88860a437ca827810d73cc"
            }
          ],
          "repo": "https://github.com/nrfconnect/ncs-zigbee",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "YesWeHack",
    "cwe_ids": [
      "CWE-829"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129840.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "main branch from commit 163246b7be03c4ad2e88860a437ca827810d73cc (2026-01-15) until the fix in pull request #76 (2026-01-21)"
              },
              {
                "last_affected": "main branch from commit 163246b7be03c4ad2e88860a437ca827810d73cc (2026-01-15) until the fix in pull request #76 (2026-01-21)"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
          }
        ]
      }
    ]
  },
  "details": "In the nrfconnect/ncs-zigbee repository, the GitHub Actions workflow\n.github/workflows/build_documentation.yml used the pull_request_target trigger\nwhile checking out and executing untrusted pull request code. This allowed a\npull request from a fork to run attacker-controlled code in the base repository\ncontext with a write-scoped GITHUB_TOKEN (contents: write, pages: write,\npull-requests: write), enabling remote code execution in CI, token\nexfiltration, and unauthorized modification of repository content and GitHub\nPages. The workflow was disabled and then rewritten to remove the issue.",
  "id": "CVE-2026-129840",
  "modified": "2026-11-20T09:46:05.609548959Z",
  "published": "2026-11-20T08:46:41.561Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129840.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nrfconnect/ncs-zigbee/commit/163246b7be03c4ad2e88860a437ca827810d73cc"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nrfconnect/ncs-zigbee/pull/76"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129840"
    },
    {
      "type": "WEB",
      "url": "https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "GitHub Actions pull_request_target code injection in nrfconnect/ncs-zigbee (build_documentation.yml)"
}