CVE-2021-23495: Open Redirect in karma
Summary
CVE-2021-23495: Open redirect in karma. Affects karma versions < 6.3.16. Fixed in 6.3.16. 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
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for karma.