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

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Published: 2024-09-26T17:08:19.996Z
- Modified: 2026-06-17T07:56:30.017Z
- Also known as: GHSA-j827-6rgf-9629
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- layui layui: < 2.9.17; before 2.9.17
- layui (npm): before 2.9.17

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/layui/layui/security/advisories/GHSA-j827-6rgf-9629> (vendor-advisory, web)
- <https://github.com/layui/layui/commit/f756b41d63bf3d488a2cb042918638c9851bf2b0> (patch, 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)

## Sources

- CVE List: [CVE-2024-47075](https://www.cve.org/CVERecord?id=CVE-2024-47075), CVE Terms of Use, modified 2024-09-26
- GitHub Advisory Database: [GHSA-j827-6rgf-9629](https://github.com/advisories/GHSA-j827-6rgf-9629), CC-BY-4.0, modified 2025-08-15
- NVD: [CVE-2024-47075](https://nvd.nist.gov/vuln/detail/CVE-2024-47075), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-47075 · Whole record: https://cve.day/CVE-2024-47075.json · Rebuilt by cve.day 2026-11-25T22:58:45.799Z
