Malicious Code Injection in fauzannugraha Package: A Threat to npm Users
Summary
MAL-2025-171208: Malicious code in fauzannugraha (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 fauzannugraha package is part of the npm ecosystem, primarily used for JavaScript development. It has been identified as part of a broader campaign that aims to manipulate npm's package registry for malicious purposes. This package, like others in the campaign, is designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names.
Vulnerability Detail
The vulnerability originates from the fauzannugraha package being linked to a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of the software supply chain. The malicious payload can affect developers' projects by introducing unwanted dependencies and altering package management.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall fauzannugraha
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 measure, you can prevent the installation of the fauzannugraha package by adding it to your project's .npmrc file with the following line: 'package-lock=false'. This will prevent npm from installing any packages that are not explicitly defined in your package.json.
Conclusion
The fauzannugraha package poses a significant risk to npm users due to its malicious behavior. It is crucial to remove this package from your projects and monitor for similar vulnerabilities using tools like Vulert. Staying informed and proactive can help safeguard your applications from potential threats.
See every vulnerability recorded for fauzannugraha →
FAQ
fauzannugraha is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
The vulnerability can introduce unwanted dependencies, alter your package management, and compromise the integrity of your software.
You should uninstall the package immediately using 'npm uninstall fauzannugraha' and check your package-lock.json for any references.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without requiring a signup.