Live threats

All CVEs / Layui

CVE-2024-47075Layui

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.5%
probability of exploitation in 30 days · percentile 39
Auth required
No
Published
Sep 26, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Layui.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm layui < 2.9.17 2.9.17 npm install layui@2.9.17

Per OSV / GitHub Advisories (GHSA-j827-6rgf-9629). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
layuilayui< 2.9.17

Official sources

References

Links published by the sources. Open them with care.