{"id":"CVE-2023-44390","published":"2023-10-05T13:41:20Z","modified":"2024-09-19T17:32:06Z","title":"HtmlSanitizer vulnerable to Cross-site Scripting in Foreign Content","vendor":"mganss","product":"HtmlSanitizer","tier":"tail","description":{"text":"HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. The vulnerability occurs in configurations where foreign content is allowed, i.e. either `svg` or `math` are in the list of allowed elements. In the case an application sanitizes user input with a vulnerable configuration, an attacker could bypass the sanitization and inject arbitrary HTML, including JavaScript code. Note that in the default configuration the vulnerability is not present. The vulnerability has been fixed in versions 8.0.723 and 8.1.722-beta (preview version).","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00516,"percentile":0.37191,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-43cp-6p3q-2pc4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mganss/HtmlSanitizer/commit/ab29319866c020f0cc11e6b92228cd8039196c6e","tags":["x_refsource_MISC"]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":7.44},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"mganss","affectedVersions":[{"vendor":"mganss","product":"HtmlSanitizer","versions":["< 8.0.723",">= 8.1.0-beta, < 8.1.722-beta"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-19T17:31:53.657681Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"HtmlSanitizer","vulnerableRanges":["<8.0.723",">=8.1.0-beta, <8.1.722-beta"],"patched":["8.0.723","8.1.722-beta"],"from":["GHSA-43cp-6p3q-2pc4"],"provenance":"source"}],"summary":{"text":"HtmlSanitizer, a .NET library for cleaning HTML, contains a cross-site scripting flaw in its handling of foreign content, which occurs only when svg or math are in the allowed-elements list. An attacker who can supply input to an application that sanitizes it with such a configuration, and who can get a user to interact with the resulting content, could bypass sanitization and inject arbitrary HTML, including JavaScript.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:45Z"},"euvd":{"id":"EUVD-2023-2637","exploited":false,"provenance":"source"}}