Malicious Code Injection in munisdr-nserf-saafd Package: A Threat to npm Ecosystem
Summary
MAL-2025-160951: Malicious code in munisdr-nserf-saafd (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 munisdr-nserf-saafd package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary function of such packages is to manipulate developer reputation scores through automated publishing scripts, leading to potential security risks for users and developers relying on these packages.
Vulnerability Detail
The vulnerability in the munisdr-nserf-saafd 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, which can lead to the pollution of the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to create and publish derivative packages with the intent of inflating developer reputation scores. The ramifications include compromised security for applications using this package, as well as potential disruptions in the npm ecosystem due to the proliferation of malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall munisdr-nserf-saafd
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, users can remove the munisdr-nserf-saafd package from their project to mitigate the risk of exposure to the malicious code. This can be done using the command: 'npm uninstall munisdr-nserf-saafd'. Additionally, consider using tools like Vulert to monitor your application for vulnerabilities.
Conclusion
The munisdr-nserf-saafd package poses a significant security risk due to its malicious code that alters package configurations and pollutes the npm registry. Users are advised to uninstall this package and monitor their applications for vulnerabilities. Regular updates and the use of monitoring tools like Vulert can help maintain application security.
See every vulnerability recorded for munisdr-nserf-saafd →
FAQ
The munisdr-nserf-saafd package is an npm package that has been identified as malicious, associated with the tea.xyz token reward campaign.
The malicious code modifies the package.json file, potentially compromising the security of your application and polluting the npm registry.
You should uninstall the munisdr-nserf-saafd package immediately and monitor your application for any signs of compromise.
Regularly update your packages, use tools like Vulert to monitor for vulnerabilities, and review package dependencies before installation.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check for vulnerabilities in your application without any signup using the Vulert playground.