{"id":"CVE-2026-129840","summary":"GitHub Actions pull_request_target code injection in nrfconnect/ncs-zigbee (build_documentation.yml)","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.","modified":"2026-11-20T10:00:14.672422022Z","published":"2026-11-20T08:46:41.561Z","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":[{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","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)"}]}]}]},"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/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nrfconnect/ncs-zigbee","events":[{"introduced":"0"},{"fixed":"163246b7be03c4ad2e88860a437ca827810d73cc"}],"database_specific":{"extracted_events":[{"range":[{"fixed":"163246b7be03c4ad2e88860a437ca827810d73cc"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v1.2.1","v1.2.0","v1.1.0","v1.0.0","v0.4.0","v0.3.1","v0.3.0","v0.2.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-129840.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}