Critical Malicious Code Vulnerability in sap-code-style-guides Package
Summary
MAL-2026-835: Malicious code in sap-code-style-guides (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 sap-code-style-guides package is an npm library designed to provide coding style guidelines for SAP projects. It aims to ensure consistency and best practices in code formatting and structure. However, this package has been identified to contain malicious code, posing significant security risks to any system that has it installed.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the sap-code-style-guides package. This code can compromise the security of any computer running the package, allowing unauthorized access to sensitive information such as secrets and keys. The implications of this vulnerability are severe, as it can lead to full system compromise, data breaches, and potential exploitation by malicious actors.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sap-code-style-guides
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
Currently, the best workaround is to uninstall the sap-code-style-guides package. You can do this by running the following command in your terminal: npm uninstall sap-code-style-guides. Ensure that you also check for any other dependencies that may be affected.
Conclusion
The sap-code-style-guides package has been identified as containing malicious code that poses a significant risk to system security. Immediate action is required to remove the package and secure any sensitive information. Users are encouraged to monitor their systems for vulnerabilities using tools like Vulert.
See every vulnerability recorded for sap-code-style-guides →
FAQ
It is an npm package that provides coding style guidelines for SAP projects, aimed at maintaining code consistency.
The malicious code can compromise the security of the system, allowing unauthorized access to sensitive information.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
You should immediately uninstall the sap-code-style-guides package and rotate any sensitive information stored on the affected system.
As of now, there is no patched version available, and the recommendation is to remove the package entirely.