Malicious Code Vulnerability in just-elements Package

just-elements Updated 02 Oct 2025

Summary

31/07/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6426: Malicious code in just-elements (npm). Affects just-elements versions 1.0.0. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback