CVE-2023-3691 layui HTML Attribute cross site scripting
Attackers can execute arbitrary scripts via the title attribute in the layui library, requiring an upgrade to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-3691?
CVE-2023-3691 is a low-severity cross-site scripting vulnerability in layui, published on 16 Jul 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2023-3691?
2 open source packages ship an affected version, including layui. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
layui npm | All versions | 2.8.0 |
layui npm | All versions | 2.8.0 |
Products include Layui Layui.
How do I fix CVE-2023-3691?
Upgrade layui to 2.8.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2023-3691 being exploited?
There is no known exploitation of CVE-2023-3691 in the wild and no public exploit code.
Other vulnerabilities in layui
Sources
Also known as GHSA-hx4h-676r-j3qp.