CVE-2024-47075 DOM Clobbering gadgets found in layui that lead to Cross-site Scripting
- 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.
| Package | Affected | Fixed in |
|---|---|---|
layui npm | All versions | 2.9.17 |
layui npm | All versions | 2.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.
Other vulnerabilities in layui
Sources
Also known as GHSA-j827-6rgf-9629.