CVE-2022-25349 Cross-site Scripting (XSS)

Medium 5.4 Published Updated

Attackers can execute arbitrary scripts via the autocomplete component due to improper input escaping in the materialize-css library.

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
None listed

What is CVE-2022-25349?

CVE-2022-25349 is a medium-severity cross-site scripting vulnerability in materialize-css, published on 1 May 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

All versions of package materialize-css are vulnerable to Cross-site Scripting (XSS) due to improper escape of user input (such as <not-a-tag />) that is being parsed as HTML/JavaScript, and inserted into the Document Object Model (DOM). This vulnerability can be exploited when the user-input is provided to the autocomplete component.

Weakness: CWE-79

Which versions are affected by CVE-2022-25349?

2 open source packages ship an affected version, including materialize-css. It affects 1 product.

PackageAffectedFixed in
materialize-css npmAll versions to 1.0.0None
materialize-css npmAll versions to 1.0.0None

Products include Materializecss Materialize.

How do I fix CVE-2022-25349?

No fix has been published for CVE-2022-25349 yet. Limit exposure of the affected software until one is available.

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

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

Sources

Also known as GHSA-7jvx-f994-rfw2.

Is CVE-2022-25349 in your software?

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

Check your SBOMs for free