CVE-2024-47075
JavaScript vulnerability analysis and mitigation

Overview

LayUI, a native minimalist modular Web UI component library, was found to contain a DOM Clobbering vulnerability in versions prior to 2.9.17. The vulnerability could lead to Cross-site Scripting (XSS) on web pages where attacker-controlled HTML elements, such as img tags with unsanitized name attributes, are present. The issue was discovered and disclosed in September 2024, with version 2.9.17 containing the fix (GitHub Advisory).

Technical details

The vulnerability is classified as DOM Clobbering, a code-reuse attack where attackers embed non-script, seemingly benign HTML markups in the webpage and leverage existing JavaScript code snippets to transform them into executable code. The vulnerability has been assigned a CVSS v3.1 base score of 6.4 (Medium), with the vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H. The weakness is categorized as CWE-79 (Improper Neutralization of Input During Web Page Generation) (NVD).

Impact

This vulnerability can result in cross-site scripting (XSS) attacks on websites that use the LayUI library and allow users to inject certain scriptless HTML tags without properly sanitizing the name or id attributes. The impact affects confidentiality and integrity at a low level, while availability impact is considered high (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in LayUI version 2.9.17. Users are advised to upgrade to this version or later to mitigate the risk. The official fix announcement can be found on the LayUI developer portal (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management