pull_request_target
A GitHub Actions workflow trigger that runs on the target repository with its secrets and a read/write GITHUB_TOKEN, unlike pull_request, even for PRs from forks.
In our briefings
What our briefings say about pull_request_target itself, with the most direct claims first.
Nx traces the stolen npm publishing token to three conditions in its own GitHub Actions setup. Its PR-title check ran on pull_request_target, which runs with the target branch's permissions and can access repository secrets, and it echoed the title unsanitized, so shell commands in an attacker's pull request title ran with repository permissions. The repository still had GitHub's original "Read and write permissions" default for Actions, which GitHub changed for new repositories in February 2023 while existing repositories were not updated automatically, and publish.yml accepted workflow_dispatch, so it could be started through the GitHub API. The script took a read/write GitHub token, pushed a branch that replaced Nx's CI script with its own, triggered the publish workflow against that branch and deleted branches and workflow runs to hide its traces. When the publish workflow ran the attacker's script, the script had access to the NPM_TOKEN and exfiltrated it. With that token the attackers published malicious Nx versions on August 26, 2025, which were active for 4 hours before they were completely removed from the registry. Nx's summary: "Our publishing process itself wasn’t breached, but the token let attackers bypass release pipelines."
A pull request title started the chain that stole Nx's npm publishing tokenBI-FIND-2025-0791
Cited in 5 briefings
Every briefing that discusses this term, newest first.
- GitHub's AI triage agent got more consistent once code, not the model, ran the easy checks
Article · · The GitHub Blog · Man Yue Mo et al. · Jan 20, 2026
- A pull request title started the chain that stole Nx's npm publishing token
Article · · Nx Blog · Nx team · Sep 5, 2025
- Tokens the Nx malware leaked made over 5,500 private GitHub repositories public, Wiz says
Article · · Wiz Blog · Merav Bar et al. · Aug 27, 2025
- The Nx malware had local AI CLIs list wallet and key files with permission checks off
Article · · StepSecurity · Ashish Kurmi · Aug 27, 2025
- Nx traces its stolen npm token to an injectable workflow still alive on old branches
Article · · nrwl/nx security advisory (GitHub) · Nx maintainers · Aug 27, 2025