CVE-2021-23495 is a medium-severity (CVSS 6.1) Open Redirect vulnerability in karma. A fix is available for karma — see the affected versions and patch details below.
Open redirect in karma
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
karmanpmDescription
The package karma before 6.3.16 are vulnerable to Open Redirect due to missing validation of the return_url query parameter.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | karma | all versions | 6.3.16npm install karma@6.3.16 |
Affected Products
karmakarma_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for karma, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update karma to 6.3.16 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-23495 is resolved across your whole dependency graph.
Workarounds
Stop reflecting attacker-controlled destinations: resolve every redirect target against an allowlist of paths or hosts you own, prefer a server-side key over a full URL in the request, and reject absolute URLs entirely where the flow only ever needs a relative one.
Frequently Asked Questions
Is CVE-2021-23495 in your dependencies?
Find it across npm, including transitive dependencies.