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

Medium 5.4 Published Updated

An attacker can inject malicious scripts via placeholder values in the @yaireo/tagify UI component, leading to cross-site scripting attacks.

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

CVE-2022-25854 is a medium-severity cross-site scripting vulnerability in @yaireo/tagify, published on 29 Apr 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

This affects the package @yaireo/tagify before 4.9.8. The package is used for rendering UI components inside the input or text fields, and an attacker can pass a malicious placeholder value to it to fire the XSS payload.

Weakness: CWE-79

Which versions are affected by CVE-2022-25854?

2 open source packages ship an affected version, including @yaireo/tagify. It affects 1 product.

PackageAffectedFixed in
@yaireo/tagify npmAll versions4.9.8
@yaireo/tagify npmAll versions4.9.8

Products include Tagify Project Tagify.

How do I fix CVE-2022-25854?

Upgrade @yaireo/tagify to 4.9.8 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-25854 being exploited?

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

Sources

Also known as GHSA-pxpf-v376-7xx5, SNYK-JS-YAIREOTAGIFY-2404358.

Is CVE-2022-25854 in your software?

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

Check your SBOMs for free