CVE-2022-31743 Cross-site scripting in Firefox

Medium 6.5 Published Updated

An HTML parser flaw in Firefox allowed attackers to escape comment tags and execute scripts, requiring users to update the browser.

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-31743?

CVE-2022-31743 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 22 Dec 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

Firefox's HTML parser did not correctly interpret HTML comment tags, resulting in an incongruity with other browsers. This could have been used to escape HTML comments on pages that put user-controlled data in them. This vulnerability affects Firefox < 101.

Weakness: CWE-79

Which versions are affected by CVE-2022-31743?

It affects 1 product.

Products include Mozilla Firefox.

How do I fix CVE-2022-31743?

Upgrade to a fixed version.

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-31743 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31743 exists.

All Mozilla Firefox vulnerabilities

Sources

Also known as GHSA-6wvv-23hx-p89r, UBUNTU-CVE-2022-31743.

Is CVE-2022-31743 in your software?

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

Check your SBOMs for free