Critical Malicious Code Vulnerability in sfdc-abstract-legend Package
Summary
MAL-2025-192418: Malicious code in sfdc-abstract-legend (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 sfdc-abstract-legend package is an npm library designed for Salesforce development, providing abstractions and utilities for easier integration with Salesforce APIs. However, it has been found to contain malicious code that compromises the security of any system where it is installed. This vulnerability poses significant risks, including unauthorized access to sensitive data and potential control over the affected system.
Vulnerability Detail
The vulnerability originates from malicious code embedded within the sfdc-abstract-legend package. This code can fully compromise any computer that has the package installed, allowing attackers to gain access to secrets and keys stored on the system. The implications are severe, as the malicious code can lead to data breaches and unauthorized actions performed on behalf of the user. The vulnerability is classified under CWE-506, indicating that the product contains code that appears to be malicious in nature.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sfdc-abstract-legend
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
There are no effective workarounds for this vulnerability other than removing the package and ensuring that all sensitive information is secured. It is crucial to monitor your system for any signs of compromise.
Conclusion
The sfdc-abstract-legend package contains a critical vulnerability due to embedded malicious code, posing significant risks to any system where it is installed. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help in monitoring and preventing future vulnerabilities.
See every vulnerability recorded for sfdc-abstract-legend →
FAQ
Immediately remove the package and rotate any secrets or keys stored on the affected system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities. Visit Vulert Scanner to check your application without needing to sign up.
Failure to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and loss of control over your system.
Currently, there is no patch available. The best course of action is to remove the package entirely.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert and keep your packages updated to the latest versions.