Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessFork repo and open pull request
-
DeliveryInject malicious code into PR branch
-
Exploitpull_request_target checks out and runs PR head
-
ExecutionCode executes with write-scoped GITHUB_TOKEN
-
ImpactExfiltrate token and tamper repo/Pages
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Trusted source inclusion only
|
| Exploitation Conditions | Exploitable only while .github/workflows/build_documentation.yml used the pull_request_target trigger AND checked out/executed the pull request's head code; under that condition any attacker could fork the repo and open a PR to trigger execution automatically, requiring no maintainer approval and no privileges in the base repository. Limiting factors: impact is bounded by the GITHUB_TOKEN's granted scopes (contents: write, pages: write, pull-requests: write) within this single repository, and the workflow has since been disabled and rewritten - current revisions are not exploitable, so the condition no longer holds on the fixed branch. |
| Impact | Signals are moderately consistent but not emergency-grade. CVSS 3.1 is 7.5 (High) with AV:N/AC:L/PR:N/UI:N, reflecting a classic GitHub Actions 'pwn request' (CWE-829) that any GitHub user can trigger by opening a fork PR - no target-repo privileges and automatic firing via pull_request_target, so it is highly automatable. The vuln.today decision label is 'this_week' (not act_now/emergency). No EPSS score, no CISA KEV listing, and no confirmed public exploit code were provided - the referenced PR #76 and commit 163246b are the FIX, and the securitylab.github.com link is general guidance, not an exploit. Technical impact against the affected repository is total (CI RCE, write-scoped GITHUB_TOKEN exfiltration, repo/Pages tampering), but it is confined to one repository's security authority, not a widely deployed product. Note a data conflict: the NVD vector sets C:N, yet the description explicitly describes GITHUB_TOKEN/secret exfiltration, which is a confidentiality impact the official score understates. Most importantly, the workflow was disabled and then rewritten, so current revisions are not exploitable - live risk is now largely historical for this repo, though the pattern is a priority to audit across other repositories. |
| Exploit ScenarioDerived | An attacker forks nrfconnect/ncs-zigbee and opens a pull request that modifies the documentation-build scripts/actions invoked by .github/workflows/build_documentation.yml; because the workflow uses pull_request_target yet checks out and runs the PR head code, the attacker's code executes automatically in the base-repo context with a write-scoped GITHUB_TOKEN. The attacker can then exfiltrate that token and tamper with repository contents and GitHub Pages. No public exploit was identified at time of analysis - the cited PR is the remediation, not weaponized code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Unauthenticated code execution in the nrfconnect/ncs-zigbee CI pipeline let any GitHub user run attacker-controlled code in the base repository context simply by opening a pull request from a fork, because .github/workflows/build_documentation.yml combined the pull_request_target trigger with a checkout of the pull request head. The job inherited a write-scoped GITHUB_TOKEN (contents: write, pages: write, pull-requests: write), so exploitation could exfiltrate the token, push or overwrite repository content and GitHub Pages output, and post or alter pull request comments; no maintainer approval or privileges in the base repository were required, and no user interaction was needed. The CNA record scores this 7.5 with confidentiality impact none, while the assessment here raises confidentiality to high to reflect the exfiltratable write token. The workflow has since been disabled and rewritten in PR #76 / commit 163246b7be03c4ad2e88860a437ca827810d73cc, so current revisions are not exploitable; no public exploit identified at time of analysis.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - the vulnerable workflow was disabled and then rewritten in https://github.com/nrfconnect/ncs-zigbee/pull/76 (commit 163246b7be03c4ad2e88860a437ca827810d73cc), and any fork, mirror or internal copy of these files should carry that rewritten version before the workflow is re-enabled. The rewrite moves documentation staging into an unprivileged preparation action and removes the direct shell interpolation of action inputs in favour of environment variables; if you maintain similar workflows, adopt the two-workflow pattern documented at https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/ - an unprivileged pull_request build that uploads an artifact, followed by a privileged workflow_run job that only consumes the artifact and never checks out or executes PR head code. Where a workflow must remain on pull_request_target, do not combine it with actions/checkout of ${{ github.event.pull_request.head.sha }} or any execution of fork-provided scripts, and set an explicit least-privilege permissions block (for this pipeline, contents: read and pages: write only where the deploy job genuinely requires it) so a bypass cannot reach contents: write or pull-requests: write; the trade-off is that PR preview deployments must then be gated through an approval or workflow_run handoff rather than posting previews automatically. Rotate any GITHUB_TOKEN-derived credentials and review gh-pages history and PR comments for unauthorized changes made while the workflow was enabled, since token exfiltration would not leave a workflow-level trace.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GitHub Actions distinguishes pull_request (fork PRs get a read-only token and no repository secrets) from pull_request_target, which runs in the context of the base repository with a writable GITHUB_TOKEN and access to secrets. The vulnerable workflow used pull_request_target but then checked out and executed the pull request's head code, which collapses that safety boundary: the untrusted fork code runs with the privileged token and base-repo identity granted to the run. The flaw maps to CWE-829, Inclusion of Functionality from Untrusted Control Sphere, since attacker-supplied content from the fork's control sphere was incorporated into a privileged execution context. The exposure is bounded by the token's granted scopes - contents: write, pages: write and pull-requests: write within this single repository - permitting commit/push to repository content, mutation of the gh-pages deployment, and comment manipulation, but not cross-repository access. Supporting custom actions in the repository (.github/actions/deploy-docs-preview, generate-docs-comment, get-changed-docs) participated in the same trust boundary, including the direct interpolation of input values into shell scripts, which the fix converted to environment-variable passing; the trigger conditions described in the available sources do not extend beyond these workflow and action files.
Know when Ncs Zigbee Nrf Connect Sdk Zigbee R23 Add On Github Repository Nrfconnect Ncs Zigbee gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Any GitHub user can fork and open a PR (PR:N) that fires automatically (UI:N, AC:L); token/secret exfiltration gives C:H and repo/Pages modification gives I:H, with no availability loss.
Primary rating from Vendor (YesWeHack).
CVSS VectorVendor: YesWeHack
DescriptionCVE.org
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.
Executive ViewAI
The nrfconnect/ncs-zigbee CI pipeline contained a critical vulnerability (CVE-2026-129840) that allowed any GitHub user to execute arbitrary code in the base repository context via a pull request from a fork, without authentication or approval. This could have enabled attackers to steal a write-scoped GITHUB_TOKEN, modify repository content, overwrite GitHub Pages, and manipulate pull request comments. Although the workflow has been disabled and rewritten, organizations using similar CI configurations must urgently assess their exposure and implement compensating controls to prevent similar supply chain attacks.
No vendor-released patch identified at time of analysis. Interim mitigations: Disable the vulnerable workflow immediately; avoid using pull_request_target with checkout of pull request head; use the pull_request trigger instead; set GITHUB_TOKEN permissions to read-only; require maintainer approval for workflows from forks; monitor repository and token activity for anomalies.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-131246
GHSA-4866-qgph-qjmx
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB