CVE-2024-47075
MEDIUM 6.1CVSS 3.1Layui has DOM Clobbering gadgets that leads to Cross-site Scripting
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.
- Published
- 26 Sep 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-j827-6rgf-9629
- Sources
- NVDJSONOSV GHSA-j827-6rgf-9629JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | layui | layuicpe:2.3:a:layui:layui:*:*:*:*:*:*:*:* |
< 2.9.17 | 2.9.17 |
| OSV | npm | layui | < 2.9.17 | 2.9.17 |
References
- https://github.com/layui/layui/commit/f756b41d63bf3d488a2cb042918638c9851bf2b0 · Patch, WEB
- https://github.com/layui/layui/security/advisories/GHSA-j827-6rgf-9629 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-47075 · ADVISORY
- https://github.com/layui/layui · PACKAGE
- https://layui.dev/notes/share/security-currentscript.html · WEB
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 26 Sep 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Sep 2024)