Malicious Code Detected in accounts-react-components: A Critical Security Alert
Summary
MAL-2025-13981: Malicious code in accounts-react-components (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 accounts-react-components package is a library designed for integrating user account management features into React applications. It provides components for login, registration, and user profile management, making it a popular choice among developers looking to streamline user authentication processes. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the accounts-react-components package. This code can potentially compromise the security of applications by allowing unauthorized access to sensitive user data or enabling other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it imperative for developers to take immediate action to mitigate the risks associated with this vulnerability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall accounts-react-components
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, developers can remove the accounts-react-components package from their project until a secure version is released. This can be done by executing the command: 'npm uninstall accounts-react-components'. Consider using alternative libraries for user account management in the meantime.
Conclusion
The discovery of malicious code in the accounts-react-components package highlights the importance of maintaining secure dependencies in software development. Developers are urged to take immediate action by updating or removing the affected package to safeguard their applications and user data.
See every vulnerability recorded for accounts-react-components →
FAQ
The malicious code can lead to unauthorized access to user data and other security breaches.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Consider removing the package temporarily and using alternative libraries for user account management until a secure version is available.
Yes, Vulert can help you monitor and alert for open-source vulnerabilities in your software using just package-lock.json.
Detailed information can be found on the GitHub repository of the malicious package: https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/accounts-react-components/MAL-2025-13981.json.