CVE-2022-0437 Cross-site Scripting (XSS) - DOM in karma-runner/karma
An attacker can execute arbitrary JavaScript in the context of the Karma test runner interface via DOM-based XSS.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-0437?
CVE-2022-0437 is a medium-severity cross-site scripting vulnerability in karma-runner/karma, published on 5 Feb 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Cross-site Scripting (XSS) - DOM in NPM karma prior to 6.3.14.
Weakness: CWE-79
Which versions are affected by CVE-2022-0437?
2 open source packages ship an affected version, including karma. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
karma npm | All versions | 6.3.14 |
karma npm | All versions | 6.3.14 |
Products include Karma Project Karma.
How do I fix CVE-2022-0437?
Upgrade karma to 6.3.14 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-0437 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-0437 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in karma-runner/karma
Sources
Also known as CLSA-2026-1788269528, CLSA-2026-1792239307, GHSA-7x7c-qm48-pq9c.