Malicious Code Injection in okta-sroto13-breki Package
Summary
MAL-2025-74808: Malicious code in okta-sroto13-breki (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The okta-sroto13-breki package is part of the npm ecosystem, typically used for various JavaScript applications. It has been identified as part of a malicious campaign that aims to exploit npm's package management system. This package is associated with the tea.xyz token reward initiative, which has been known to flood the npm registry with derivative packages to inflate developer reputation scores.
Vulnerability Detail
The vulnerability in the okta-sroto13-breki package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to automate the creation and distribution of these harmful packages. The ramifications include potential pollution of the npm registry, compromising the integrity of the ecosystem, and exposing developers to security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall okta-sroto13-breki
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can remove the okta-sroto13-breki package from your project by executing the command: npm uninstall okta-sroto13-breki. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The okta-sroto13-breki package has been identified as containing malicious code that poses significant risks to developers and the npm ecosystem. It is essential to take immediate action by updating or uninstalling the package to safeguard your applications.
See every vulnerability recorded for okta-sroto13-breki →
FAQ
The okta-sroto13-breki package is an npm package that has been identified as part of a malicious campaign targeting the npm registry.
This vulnerability can lead to the pollution of the npm registry and may expose your application to security risks due to the malicious code embedded in the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If you cannot update the package, it is advisable to uninstall it as a temporary measure to mitigate the risk until a secure version is released.
More information can be found in the vulnerability report on the GitHub repository or by checking the npm registry for updates.