CVE-2022-23458 Toast UI Grid vulnerable to Cross-site scripting

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts by pasting malicious content into editable cells of the Toast UI Grid component.

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

CVE-2022-23458 is a medium-severity cross-site scripting vulnerability in nhn tui.grid, published on 22 Sep 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

Toast UI Grid is a component to display and edit data. Versions prior to 4.21.3 are vulnerable to cross-site scripting attacks when pasting specially crafted content into editable cells. This issue was fixed in version 4.21.3. There are no known workarounds.

Weakness: CWE-79

Which versions are affected by CVE-2022-23458?

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

PackageAffectedFixed in
tui-grid npmAll versions4.21.3
tui-grid npmAll versions4.21.3

Products include Nhn Toast Ui Grid.

How do I fix CVE-2022-23458?

Upgrade tui-grid to 4.21.3 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-23458 being exploited?

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

Sources

Also known as GHSA-9rwj-9j2h-fhvm.

Is CVE-2022-23458 in your software?

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

Check your SBOMs for free