Malicious Code Vulnerability in just-elements Package
Summary
MAL-2025-6426: Malicious code in just-elements (npm). Affects just-elements versions 1.0.0. 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 just-elements package is an npm library designed to facilitate the creation and manipulation of HTML elements in JavaScript applications. It is widely used for its simplicity and efficiency in handling DOM elements. However, the package has been identified to contain malicious code, which poses significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within version 1.0.0 of the just-elements package. This code can potentially allow unauthorized access to sensitive data or enable remote code execution, leading to severe consequences for affected applications. The malicious code was discovered by ReversingLabs and is documented in their findings, indicating a serious threat to users of this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall just-elements
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 immediate updating is not feasible, consider removing the just-elements package from your project and replacing it with a safer alternative that provides similar functionality. This can be done by uninstalling the package with the command: 'npm uninstall just-elements'.
Conclusion
The just-elements package has been found to contain malicious code, posing a significant security risk to applications that utilize it. Users are advised to update to a secure version or remove the package altogether. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for just-elements →
FAQ
just-elements is an npm library used for creating and manipulating HTML elements in JavaScript applications.
The vulnerability involves malicious code that can lead to unauthorized access and potential remote code execution.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
Consider removing the just-elements package and replacing it with a safer alternative until you can update.
The vulnerability was identified by ReversingLabs, a cybersecurity firm specializing in threat detection.