CVE-2022-25979 jSuites subect to Cross-site Scripting

Medium 5.4 Published Updated

An attacker can execute arbitrary scripts via unsanitized input in the Editor function of the jsuites 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
Available

What is CVE-2022-25979?

CVE-2022-25979 is a medium-severity cross-site scripting vulnerability in jsuites, published on 31 Jan 2023. 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

Versions of the package jsuites before 5.0.1 are vulnerable to Cross-site Scripting (XSS) due to improper user-input sanitization in the Editor() function.

Weakness: CWE-79

Which versions are affected by CVE-2022-25979?

2 open source packages ship an affected version, including jsuites. It affects 1 product.

PackageAffectedFixed in
jsuites npmAll versions5.0.1
jsuites npmAll versions5.0.1

Products include Jsuites Jsuites.

How do I fix CVE-2022-25979?

Upgrade jsuites to 5.0.1 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-25979 being exploited?

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

Sources

Also known as GHSA-r4hg-4cpq-q57c.

Is CVE-2022-25979 in your software?

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

Check your SBOMs for free