{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-116538",
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "state": "PUBLISHED",
        "assignerShortName": "VulnCheck",
        "dateReserved": "2026-10-26T14:30:56.846Z",
        "datePublished": "2026-10-26T14:59:38.815Z",
        "dateUpdated": "2026-10-26T14:59:38.815Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
                "shortName": "VulnCheck",
                "dateUpdated": "2026-10-26T14:59:38.815Z"
            },
            "datePublic": "2026-08-26T00:00:00.000Z",
            "title": "HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
                            "cweId": "CWE-79",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "mganss",
                    "product": "HtmlSanitizer",
                    "defaultStatus": "unaffected",
                    "versions": [
                        {
                            "version": "0",
                            "status": "affected",
                            "versionType": "semver",
                            "lessThan": "9.2.1039"
                        },
                        {
                            "version": "10.0.0-beta",
                            "status": "affected",
                            "versionType": "semver",
                            "lessThan": "10.0.1037-beta"
                        }
                    ],
                    "collectionURL": "https://www.nuget.org/packages/HtmlSanitizer",
                    "packageName": "HtmlSanitizer",
                    "packageURL": "pkg:nuget/HtmlSanitizer",
                    "repo": "https://github.com/mganss/HtmlSanitizer"
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:htmlsanitizer_project:htmlsanitizer:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "9.2.1039"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:htmlsanitizer_project:htmlsanitizer:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "10.0.0-beta",
                                    "versionEndExcluding": "10.0.1037-beta"
                                }
                            ]
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV4_0": {
                        "version": "4.0",
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "privilegesRequired": "NONE",
                        "userInteraction": "PASSIVE",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "NONE",
                        "vulnAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "LOW",
                        "subIntegrityImpact": "LOW",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 2.3,
                        "baseSeverity": "LOW"
                    }
                },
                {
                    "format": "CVSS",
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N",
                        "attackVector": "NETWORK",
                        "attackComplexity": "HIGH",
                        "privilegesRequired": "NONE",
                        "userInteraction": "REQUIRED",
                        "scope": "CHANGED",
                        "confidentialityImpact": "LOW",
                        "integrityImpact": "LOW",
                        "availabilityImpact": "NONE",
                        "baseScore": 4.7,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "references": [
                {
                    "url": "https://github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56f",
                    "tags": [
                        "patch"
                    ],
                    "name": "Patch Commit"
                },
                {
                    "url": "https://github.com/mganss/HtmlSanitizer/commit/ab626e7a4f2893f7e9ec0a72779ae19c5ec439a7",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L456-L465",
                    "tags": [
                        "technical-description"
                    ]
                },
                {
                    "url": "https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L555-L583",
                    "tags": [
                        "technical-description"
                    ]
                },
                {
                    "url": "https://joshua.hu/htmlsanitizer-sanitizedom-body-html-attribute-bypass",
                    "tags": [
                        "technical-description"
                    ]
                },
                {
                    "url": "https://github.com/mganss/HtmlSanitizer/releases/tag/v9.2.1039",
                    "tags": [
                        "release-notes"
                    ],
                    "name": "HtmlSanitizer v9.2.1039 Release Notes"
                },
                {
                    "url": "https://github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-beta",
                    "tags": [
                        "release-notes"
                    ],
                    "name": "HtmlSanitizer v10.0.1037-beta Release Notes"
                },
                {
                    "url": "https://github.com/mganss/HtmlSanitizer",
                    "tags": [
                        "product"
                    ]
                },
                {
                    "name": "VulnCheck Advisory: HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes",
                    "tags": [
                        "third-party-advisory"
                    ],
                    "url": "https://www.vulncheck.com/advisories/htmlsanitizer-before-9.2.1039-xss-via-sanitizedom-body-and-html-attributes"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Joshua Rogers",
                    "type": "finder"
                }
            ],
            "x_generator": {
                "engine": "vulncheck-endgame"
            }
        }
    }
}