Vulnerability · Published Sep 26, 2024 · Assigned by GitHub_M
CVE-2024-47075DOM Clobbering gadgets found in layui that lead to Cross-site Scripting
Medium 6.4
In plain English
A medium-severity cross-site scripting in layui from layui. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | layui | 2.9.17 | GHSA-j827-6rgf-9629 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
References
- https://github.com/layui/layui/security/advisories/GHSA-j827-6rgf-9629 x_refsource_CONFIRM
- https://github.com/layui/layui/commit/f756b41d63bf3d488a2cb042918638c9851bf2b0 x_refsource_MISC