CVE-2022-34473 Cross-site scripting in Firefox

Medium 6.1 Published Updated

An XSS vulnerability in Firefox's HTML Sanitizer allows attackers to execute arbitrary code via unsanitized xlink:href attributes in SVG use tags.

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

CVE-2022-34473 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

The HTML Sanitizer should have sanitized the <code>href</code> attribute of SVG <code>&lt;use&gt;</code> tags; however it incorrectly did not sanitize <code>xlink:href</code> attributes. This vulnerability affects Firefox < 102.

Weakness: CWE-79

Which versions are affected by CVE-2022-34473?

It affects 1 product.

Products include Mozilla Firefox.

How do I fix CVE-2022-34473?

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

There is no known exploitation of CVE-2022-34473 in the wild and no public exploit code.

All Mozilla Firefox vulnerabilities

Sources

Also known as GHSA-h8wm-ccrj-94x5, UBUNTU-CVE-2022-34473.

Is CVE-2022-34473 in your software?

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

Check your SBOMs for free