CVE-2026-129840 in ncs-zigbeeinfo

Summary

by MITRE • 11/20/2026

In the nrfconnect/ncs-zigbee repository, the GitHub Actions workflow .github/workflows/build_documentation.yml used the pull_request_target trigger while checking out and executing untrusted pull request code. This allowed a pull request from a fork to run attacker-controlled code in the base repository context with a write-scoped GITHUB_TOKEN (contents: write, pages: write, pull-requests: write), enabling remote code execution in CI, token exfiltration, and unauthorized modification of repository content and GitHub Pages. The workflow was disabled and then rewritten to remove the issue.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/20/2026

The vulnerability identified within the nrfconnect/ncs-zigbee repository represents a critical supply chain security failure rooted in the misuse of GitHub Actions triggers. Specifically, the build_documentation.yml workflow utilized the pull_request_target event type for its execution trigger. This configuration is inherently dangerous when combined with actions that checkout source code from untrusted sources without proper isolation. The core technical flaw lies in the fact that while the pull_request_target event runs within the context of the base repository's branch, it executes scripts and commands defined by the incoming pull request. In this specific instance, the workflow proceeded to check out the head commit of the pull request, which originates from a forked repository controlled potentially by an external attacker or compromised contributor. By executing code in this manner, the CI environment effectively grants remote execution capabilities to any entity capable of submitting a malicious pull request to the project.

The operational impact of this vulnerability is severe due to the permissions assigned to the GITHUB_TOKEN used during the workflow execution. The token was configured with write access to repository contents, GitHub Pages, and pull requests. Consequently, an attacker who successfully injects malicious code into a pull request could achieve remote code execution within the CI runner environment. This level of access allows for the exfiltration of sensitive data stored in the environment variables or secrets associated with the base repository. Furthermore, the write permissions on contents and pages enable the attacker to modify source files directly in the main branch or deploy malicious static content to GitHub Pages, thereby compromising the integrity of the project's documentation and potentially distributing malware to users who visit the hosted site. This scenario exemplifies a classic insecure checkout pattern where untrusted input is processed with elevated privileges without adequate sandboxing or verification mechanisms.

From an industry standards perspective, this vulnerability aligns closely with CWE-940, which describes Improper Verification of Element Source in Privileged Contexts, as well as CWE-78, the OS Command Injection category, given that arbitrary commands were executed based on external input. In terms of the MITRE ATT&CK framework for Enterprise, this incident maps to T1623, Resource Hijacking via Cloud Infrastructure, and more specifically relates to techniques involving unauthorized access through CI/CD pipelines such as those described under supply chain compromise vectors like T1588.004 or general pipeline injection methods where attackers manipulate build processes to gain persistent access or exfiltrate data. The use of pull_request_target without restricting the checkout scope is a known anti-pattern that security experts consistently warn against due to its potential for privilege escalation within automated systems.

To mitigate such vulnerabilities, organizations must adopt strict policies regarding CI/CD workflow configurations. It is recommended to avoid using pull_request_target when checking out untrusted code unless absolutely necessary and only after implementing robust verification steps. If the trigger must be used, developers should ensure that any checkout of forked repository content occurs in a separate job with restricted permissions or uses read-only tokens for operations involving external sources. Additionally, enabling branch protection rules to require manual approval for workflows triggered by pull requests can provide an additional layer of defense against automated exploitation attempts. Regular auditing of workflow files and adherence to the principle of least privilege are essential practices to prevent similar incidents in future development cycles.

Responsible

YesWeHack

Reservation

11/16/2026

Disclosure

11/20/2026

Moderation

accepted

CPE

ready

EPSS

0.00959

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!