CVE-2022-0437 Cross-site Scripting (XSS) - DOM in karma-runner/karma

Medium 5.4 Published Updated

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.

PackageAffectedFixed in
karma npmAll versions6.3.14
karma npmAll versions6.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.

Sources

Also known as CLSA-2026-1788269528, CLSA-2026-1792239307, GHSA-7x7c-qm48-pq9c.

Is CVE-2022-0437 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free