Malicious Code Detected in accgen Package - Security Alert
Summary
MAL-2025-13976: Malicious code in accgen (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 accgen package is a tool designed for generating account credentials in various formats. It is utilized by developers for automating the creation of user accounts in applications. However, this package has been flagged for containing malicious code, which poses a significant risk to users and their applications.
Vulnerability Detail
The vulnerability in the accgen package stems from the inclusion of malicious code that can compromise the security of applications utilizing this package. This code may lead to unauthorized access, data breaches, or other harmful actions. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall accgen
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, consider removing the accgen package from your project until a patched version is released. You can do this by executing the command: 'npm uninstall accgen'. This will help prevent any potential exploitation of the vulnerability.
Conclusion
The accgen package has been identified as containing malicious code, posing a significant risk to users. It is essential to update or remove the package to protect your applications. Utilize tools like Vulert to monitor for vulnerabilities in your software.
See every vulnerability recorded for accgen →
FAQ
The malicious code can potentially allow unauthorized access to user data and compromise application security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If an immediate update is not possible, consider removing the package from your project as a temporary measure.
Currently, all versions of accgen are affected. Users should await a patched version before using the package again.
The vulnerability was discovered by Amazon Inspector, a security tool that identifies vulnerabilities in software packages.