Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-116538— HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes

Quick assessment

Affected
mganss HtmlSanitizer
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

在版本 9.2.1039 之前的 HtmlSanitizer,以及 10.0 预览版中低于 10.0.1037-beta 的版本,存在跨站脚本(XSS)漏洞。该漏洞源于 方法从未对 和 包装元素上的属性进行净化。攻击者可以提交包含第二个 或 标签的输入,这些标签携带如 等事件处理器;当应用程序渲染序列化后的文档或 的外层 HTML 时,恶意脚本将被执行。

CVSS 4.7 · Medium EPSS 0.29% · P21

Affected Version Matrix 2

VendorProduct Version RangeStatus
mganss HtmlSanitizer < 9.2.1039 affected
10.0.0-beta< 10.0.1037-beta affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-116538

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes
Source: CVE Program / CVE List V5
Vulnerability Description
HtmlSanitizer before 9.2.1039 and 10.0 prereleases before 10.0.1037-beta contains a cross-site scripting vulnerability because SanitizeDom(string) never sanitizes attributes on the html and body wrapper elements. Attackers can supply input with a second body or html tag carrying event handlers like onload, executing script when applications render serialized document or body outer HTML.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
mganss HtmlSanitizer 0 ~ 9.2.1039 -

II. Public POCs for CVE-2026-116538

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-116538

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-116538 (2)

Vendor Advisories for CVE-2026-116538 (1)

Security Blog Posts for CVE-2026-116538 (1)

Vendor Pages for CVE-2026-116538 (2)

IV. Related Vulnerabilities