CVE-2021-23495: Open Redirect in karma

karma Updated 02 Oct 2025

Summary

26/02/2022
Yes i
Moderate
5.4

CVE-2021-23495: Open redirect in karma. Affects karma versions < 6.3.16. Fixed in 6.3.16. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Karma is an npm package that is used for running JavaScript tests in multiple real browsers. It provides a simple and efficient way to execute tests and generate test reports. However, versions of Karma before 6.3.16 are vulnerable to an Open Redirect attack. This vulnerability arises due to the lack of validation of the return_url query parameter.

Vulnerability Detail

The Open Redirect vulnerability in Karma allows an attacker to craft a malicious URL that redirects users to a different website. By manipulating the return_url parameter, an attacker can trick users into visiting a malicious site, potentially leading to phishing attacks or the disclosure of sensitive information. This vulnerability has a CVSS score of 5.4, indicating a moderate severity level.

How To Fix

Latest published version: 6.4.4 as of 23 Oct 2026

npm install karma@6.4.4

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.3.16

This is the first release that contains the fix.

npm install karma@6.3.16

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update to the fixed version of Karma to mitigate the risk of open redirects.

Conclusion

Karma versions before 6.3.16 are vulnerable to an Open Redirect attack. This can be exploited by an attacker to redirect users to malicious websites, potentially leading to phishing attacks or the disclosure of sensitive information. To mitigate this risk, it is recommended to update to Karma version 6.3.16 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for karma →

Share this vulnerability

FAQ

An Open Redirect vulnerability allows an attacker to redirect users from a trusted website to a malicious one. This can be exploited to trick users into visiting phishing sites or disclosing sensitive information.

Karma is an npm package used for running JavaScript tests in multiple real browsers. It provides a convenient way to execute tests and generate test reports.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities using package-lock.json.

This vulnerability has a CVSS score of 5.4, indicating a moderate severity level.

No, there is no known workaround for this vulnerability. It is crucial to update to the fixed version of Karma to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for karma.

How To Fix

Latest published version: 6.4.4 as of 23 Oct 2026

npm install karma@6.4.4

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.3.16

This is the first release that contains the fix.

npm install karma@6.3.16

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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