CVE-2024-47075 DOM Clobbering gadgets found in layui that lead to Cross-site Scripting

Medium 6.4 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2024-47075?

CVE-2024-47075 is a medium-severity vulnerability in layui, published on 26 Sep 2024.

Official description

LayUI is a native minimalist modular Web UI component library. Versions prior to 2.9.17 have a DOM Clobbering vulnerability that can lead to Cross-site Scripting (XSS) on web pages where attacker-controlled HTML elements (e.g., `img` tags with unsanitized `name` attributes) are present. Version 2.9.17 fixes this issue.

Weakness: CWE-79

Which versions are affected by CVE-2024-47075?

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

PackageAffectedFixed in
layui npmAll versions2.9.17
layui npmAll versions2.9.17

Products include Layui Layui.

How do I fix CVE-2024-47075?

Upgrade layui to 2.9.17 or later.

Is CVE-2024-47075 being exploited?

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

Sources

Also known as GHSA-j827-6rgf-9629.

Is CVE-2024-47075 in your software?

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

Check your SBOMs for free