Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. HtmlSanitizer
  4. ›
  5. CVE-2023-44390

CVE-2023-44390: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

October 5, 2023 (updated October 12, 2023)

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).

References

  • github.com/advisories/GHSA-43cp-6p3q-2pc4
  • github.com/mganss/HtmlSanitizer/commit/ab29319866c020f0cc11e6b92228cd8039196c6e
  • github.com/mganss/HtmlSanitizer/security/advisories/GHSA-43cp-6p3q-2pc4

Code Behaviors & Features

Detect and mitigate CVE-2023-44390 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 8.0.723, all versions starting from 8.1.0-beta before 8.1.722-beta

Fixed versions

  • 8.0.723
  • 8.1.722-beta

Solution

Upgrade to versions 8.0.723, 8.1.722-beta or above. *Note*: 8.1.722-beta may be an unstable version. Use caution.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

nuget/HtmlSanitizer/CVE-2023-44390.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:19 +0000.