CVE-2023-50550 Layui cross-site scripting (XSS) vulnerability

Medium 5.4 Published Updated

An attacker can execute arbitrary scripts in a victim's browser via the data-content parameter in the layui library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-50550?

CVE-2023-50550 is a medium-severity cross-site scripting vulnerability in n/a, published on 30 Dec 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

layui up to v2.74 was discovered to contain a cross-site scripting (XSS) vulnerability via the data-content parameter.

Weakness: CWE-79

Which versions are affected by CVE-2023-50550?

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

PackageAffectedFixed in
layui npmAll versions2.7.5
layui npmAll versions2.7.5

Products include Layui Layui.

How do I fix CVE-2023-50550?

Upgrade layui to 2.7.5 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-2023-50550 being exploited?

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

Sources

Also known as GHSA-rcvr-8whx-3m5p.

Is CVE-2023-50550 in your software?

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

Check your SBOMs for free