CVE-2026-42502
Invoking incorrect handling of HTML elements in foreign content in golang.org/x/net/html
Medium · published May 22, 2026
What it is
Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in applications that attempt to sanitize input HTML before rendering.
The record
Technical detail
- CVSS v3.1
- 6.1 · MEDIUM
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v4.0
- Not supplied
- EPSS
- 0.00223 · 12.2th percentile
- Published
- 2026-05-22T15:01Z
EPSS history
Timeline