Malicious Code Vulnerability in @commonschema/blackstone-core Package
Summary
MAL-2026-1595: Malicious code in @commonschema/blackstone-core (npm). Affects @commonschema/blackstone-core versions 0.2.2-alpha – 2.0.8. 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 @commonschema/blackstone-core package is a JavaScript library available through npm, designed to facilitate schema management and data validation in applications. It is commonly used in web development projects to ensure data integrity and streamline data handling processes. However, this package has been identified as containing malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within specific versions of the @commonschema/blackstone-core package. This code can potentially compromise the security of applications by allowing unauthorized access, data manipulation, or other malicious activities. The affected versions include 0.2.2-alpha, 1.0.0, 1.0.1, 1.0.2, 1.0.5, 1.0.6, 1.0.7, and 2.0.8. Users of these versions are at risk and should take immediate action to mitigate potential damage.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @commonschema/blackstone-core
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
If you cannot immediately update the package, consider removing it from your project until a secure version is released. You can do this by running: npm uninstall @commonschema/blackstone-core. Additionally, monitor your application for any unusual behavior that may indicate exploitation of this vulnerability.
Conclusion
The @commonschema/blackstone-core package has been identified as containing malicious code, posing serious security risks to applications. It is crucial for developers to update to a secure version or remove the package to protect their systems. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for @commonschema/blackstone-core →
FAQ
It is a JavaScript library used for schema management and data validation in web applications.
You can check your application using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to use the Vulert playground without signup.
You should update the package to a secure version immediately or remove it from your project until a fix is available.
The risks include unauthorized access to your application, potential data manipulation, and other malicious activities that could compromise your system's integrity.
Detailed information can be found in the vulnerability report on GitHub or through security advisories related to the @commonschema/blackstone-core package.