GHSA-8j9v-h2vp-2hhv

    Dashboard / Vulnerabilities / GHSA-8j9v-h2vp-2hhv

    GHSA-8j9v-h2vp-2hhv

    Published: 4 Jan 2021Last Modified: 10 Sept 2026

    Summary: XSS in HtmlSanitizer

    Details: ### Impact If you have explicitly allowed the `<style>` tag, an attacker could craft HTML that includes script after passing through the sanitizer. The default settings disallow the `<style>` tag so there is no risk if you have not explicitly allowed the `<style>` tag. ### Patches The problem has been fixed in version 5.0.372. ### Workarounds Remove the `<style>` tag from the set of allowed tags. ### For more information If you have any questions or comments about this advisory open an issue in https://github.com/mganss/HtmlSanitizer ### Credits This issue was discovered by Michal Bentkowski of Securitum.

    Affected packages

    Package

    Name: HtmlSanitizer

    Purl: pkg:nuget/HtmlSanitizer

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -5.0.372

    Affected versions

    1.0.4925.29815
    1.0.4927.30873

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-8j9v-h2vp-2hhv | CVE-DB