Malicious Code Vulnerability in jsswapper Package

jsswapper Updated 24 Dec 2025

Summary

23/12/2025
CRITICAL
No i
Critical
Not published

MAL-2025-192814: Malicious code in jsswapper (npm). Affects jsswapper versions 7.2.7. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

jsswapper is an npm package designed for JavaScript developers to facilitate the swapping of JavaScript files in a project. It allows for dynamic loading and unloading of scripts, enhancing modularity and performance. However, recent findings have revealed that the package is susceptible to malicious code injection, posing significant security risks to applications that utilize it.

Vulnerability Detail

The vulnerability identified in jsswapper stems from the presence of malicious code that can be executed when the package is installed or updated. This code may compromise the integrity of the application, leading to unauthorized access, data breaches, or system manipulation. The malicious code was reported by ReversingLabs and is associated with version 7.2.7 of the package. Users of this version are at risk and should take immediate action to mitigate potential threats.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall jsswapper

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

As a temporary workaround, you can remove the jsswapper package from your project until a secure version is confirmed. Use the following command to uninstall it: npm uninstall jsswapper. Consider using alternative packages that provide similar functionality without the associated risks.

Conclusion

The jsswapper package has been identified as having a serious vulnerability due to malicious code. It is crucial for developers using this package to take immediate action by updating to a secure version or removing the package entirely until a fix is available. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for jsswapper →

Share this vulnerability

FAQ

The vulnerability involves malicious code that can execute harmful actions within an application when the jsswapper package is installed or updated.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By analyzing your package-lock.json file, it can identify if your application is affected by this vulnerability.

If you are using version 7.2.7, you should immediately update to the latest version of jsswapper to mitigate the risk of malicious code execution.

Yes, you can use Vulert's playground to check for vulnerabilities in your application without needing to sign up. Simply upload your package-lock.json file to receive alerts.

Failing to address this vulnerability can lead to unauthorized access to your application, data breaches, and potential manipulation of your system, which can have severe repercussions for your organization.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall jsswapper

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