Vulnerability library
Security checkSeptember 26, 2024

Layui has DOM Clobbering gadgets that leads to Cross-site Scripting

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmlayui

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

A DOM Clobbering vulnerability has been discovered in layui 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.

Recommendation

Update the layui package to the latest compatible version. Followings are version details:

  • Affected version(s): < 2.9.17
  • Patched version(s): 2.9.17

References

Could your website be exposed too?

SmartScanner can check your website for Layui has DOM Clobbering gadgets that leads to Cross-site Scripting and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 26, 2024