Snyk has reported that there have been attempts or successful attacks targeting this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsAvoid using all malicious instances of the @7nohe/openapi-react-query-codegen package.
@7nohe/openapi-react-query-codegen is an OpenAPI React Query Codegen
Affected versions of this package are vulnerable to Embedded Malicious Code that conceals a destructive worm and credential harvester. A malicious actor exploited a comment-triggered GitHub Actions workflow by commenting on a pull request fork, allowing the attacker to bypass access controls and publish tampered versions of the package to npm, all with valid provenance attestations.
The malicious releases use a binding.gyp Python sandbox escape or a preinstall script to silently download the Bun runtime and execute a heavily obfuscated payload. The payload harvests a wide range of sensitive data including cloud credentials (AWS, Azure, GCP), developer tokens (npm, PyPI, RubyGems), and local SSH keys. It exfiltrates this data by using stolen tokens to automatically create public GitHub repositories that store the encrypted credentials.
Notes:
The execution is triggered natively during installation via node-gyp processing or standard preinstall hooks, meaning developer environments and CI runners are immediately targeted on npm install.
Despite being malicious, the compromised versions will pass npm audit signatures because they carry valid cryptographic npm provenance attestations generated by the hijacked GitHub workflow.
The malware contains evasion techniques to avoid execution in certain environments, such as security scanners, specific geographic locales, and endpoints running certain security software.