OpenAPI React Query Codegen npm Releases Deliver Credential-Stealing Supply-Chain Malware
Supply Chain Risk · 9 sources · Updated 3mo ago · First seen Aug 28, 2026

Ten malicious versions of @7nohe/openapi-react-query-codegen, a TanStack Query code generator with more than 150,000 weekly downloads, were published after an external GitHub user exploited its release workflow. The workflow accepted an exact npm-publish comment from any pull-request participant, checked out untrusted pull-request code, and used the repository's GitHub Actions OIDC trusted-publishing identity to release it; consequently, the malicious packages carried valid npm provenance attestations. At the time of reporting, npm's latest tag reportedly referenced malicious version 3.0.4.
The releases execute code during installation through preinstall hooks, malicious binding.gyp logic evaluated by node-gyp, or both, then launch an obfuscated second-stage payload. The malware downloads and executes Bun, probes Google Cloud metadata services, harvests credentials from cloud, GitHub, package registries, containers, Kubernetes, Vault, cryptocurrency wallets, messaging, VPN, and AI-development tools, and can propagate through accessible development environments; stolen data is exfiltrated through GitHub repositories labeled “Trinitite: Sponsored by Preview 2 Effects.” Organizations that installed affected versions with lifecycle scripts enabled should isolate and rebuild impacted systems, remove persistence and cached artifacts, and rotate all potentially exposed credentials from a clean environment using reviewed lockfiles and known-good releases.
Why it matters
Impact assessment
Installation of any identified malicious version of @7nohe/openapi-react-query-codegen constitutes a potential compromise of the developer workstation or CI runner that performed the install. The package had roughly 150,000 weekly downloads across maintained release lines, and the malware can steal and validate source-control, registry, cloud, CI/CD, SSH, Kubernetes, Vault, and developer-tool credentials, creating substantial risk of follow-on supply-chain compromise, cloud access, data theft, and unauthorized package publication.
- Affected populations: Node.js development teams, CI/CD environments, build agents, and any organization directly or transitively installing the package.
- Exposure scope: Broad downstream exposure because all maintained version lines were targeted and npm's
latesttag reportedly resolved to malicious3.0.4during the incident. - Operational impact: Compromised runners may have altered GitHub Actions workflows, persistence on macOS or Linux, malicious modifications to AI-development tool configuration, and unauthorized deployment or repository changes.
- Secondary impact: Stolen npm, GitHub, PyPI, RubyGems, JFrog, cloud, and SSH credentials can support propagation into other repositories, registries, hosts, and packages.
- Exploitation status: Confirmed malicious releases were published on August 28, 2026. Reporting documents observed installation execution and network activity in isolated runners; organizations that installed affected versions should assume compromise.
- Provenance caveat: Valid npm provenance attestations do not establish that the published source was authorized or benign in this incident.


