Malicious Code Detected in frontend-services Package - MAL-2025-20975
Summary
MAL-2025-20975: Malicious code in frontend-services (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 frontend-services package is an npm library designed to facilitate various frontend functionalities in web applications. It is widely used for its ease of integration and robust features. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that depend on it.
Vulnerability Detail
The vulnerability in the frontend-services package stems from the inclusion of malicious code that can compromise the security of applications utilizing this library. This code may lead to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall frontend-services
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 frontend-services package from your project until a secure version is released. You can do this by executing the following command: npm uninstall frontend-services.
Conclusion
The discovery of malicious code in the frontend-services package poses a serious threat to applications that utilize it. Users are urged to take immediate action by updating or removing the package to safeguard their applications. Continuous monitoring for updates and utilizing tools like Vulert can help maintain security against such vulnerabilities.
See every vulnerability recorded for frontend-services →
FAQ
The malicious code can potentially allow unauthorized access to sensitive data and compromise the integrity of applications using the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By simply analyzing your package-lock.json file, Vulert can help identify if your application is affected.
Currently, all versions starting from 0 are affected. It is advisable to remove the package until a secure version is released.
If immediate updates are not feasible, consider removing the package temporarily and monitoring for any announcements regarding a patched version.
Detailed information about the vulnerability can be found on the GitHub repository of the malicious packages project, specifically at the URL: https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/frontend-services/MAL-2025-20975.json.