Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-26293

HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. In HtmlSanitizer before version 5.0.372, there is a possible XSS bypass if style tag is allowed. If you have explicitly allowed the `

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-26293
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:09 UTC · Revision 1

Source evidence

CVE-2020-26293

core-osv · Original source

Published 4 Jan 2021, 19:15 UTC

HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. In HtmlSanitizer before version 5.0.372, there is a possible XSS bypass if style tag is allowed. If you have explicitly allowed the `

osv:CVE-2020-26293
Complete source record
{
  "id": "cfaed56cb88b5dca8e49fbb199d62356aa6e845231af7aa0bc8e0918612fb7f8",
  "url": "https://osv.dev/vulnerability/CVE-2020-26293",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-26293",
    "summary": "HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. In HtmlSanitizer before version 5.0.372, there is a possible XSS bypass if style tag is allowed. If you have explicitly allowed the `",
    "evidence": "osv:CVE-2020-26293",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2020-26293",
      "aliases": [
        "CVE-2020-26293",
        "GHSA-8j9v-h2vp-2hhv"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mganss/htmlsanitizer",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:htmlsanitizer_project:htmlsanitizer:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.0.372"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v5.0.372"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v5.0.371",
            "v5.0.368",
            "v5.0.367",
            "v5.0.366",
            "v5.0.365",
            "v5.0.364",
            "v5.0.363",
            "v5.0.358",
            "v5.0.355",
            "v5.0.354",
            "v5.0.343",
            "v5.0.342",
            "v5.0.332",
            "v5.0.331",
            "v5.0.328",
            "v5.0.325",
            "v5.0.322",
            "v5.0.319",
            "v5.0.316",
            "v5.0.313",
            "v5.0.310",
            "v5.0.307",
            "v5.0.304",
            "v5.0.303",
            "v5.0.298",
            "v5.0.297",
            "v5.0.296",
            "v5.0.293",
            "v5.0.292",
            "v5.0.291",
            "v5.0.290",
            "v5.0.287",
            "v5.0.283",
            "v5.0.280",
            "v5.0.277",
            "v5.0.274",
            "v5.0.272",
            "v5.0.269",
            "v5.0.266",
            "v5.0.263",
            "v5.0.260",
            "v5.0.257",
            "v5.0.250",
            "v5.0.249",
            "v5.0.248",
            "v5.0.245",
            "v5.0.244",
            "v5.0.239",
            "v5.0.236",
            "v5.0.233",
            "v4.0.230",
            "v4.0.229",
            "v4.0.228",
            "v4.0.219",
            "v4.0.217",
            "v4.0.212",
            "v4.0.211",
            "v4.0.210",
            "v4.0.209",
            "v4.0.207",
            "v4.0.205",
            "v4.0.204",
            "v4.0.201",
            "v4.0.199",
            "v4.0.193",
            "v4.0.192",
            "v4.0.191",
            "v4.0.189",
            "v4.0.188",
            "v4.0.187",
            "v4.0.186",
            "v4.0.185",
            "v4.0.183",
            "v4.0.182",
            "v4.0.181",
            "v4.0.180",
            "v4.0.179",
            "v3.5.169-beta",
            "v3.5.168-beta",
            "v3.5.167-beta",
            "v3.4.156",
            "v3.4.152-beta",
            "v3.3.148-beta",
            "v3.3.147-beta",
            "v3.3.146-beta",
            "v3.3.145-beta",
            "v3.3.144-beta",
            "v3.3.143-beta",
            "v3.3.142",
            "v3.3.140-beta",
            "v3.3.134-beta",
            "v3.3.132-beta",
            "v3.3.131-beta",
            "v3.3.130-beta",
            "v3.3.129-beta",
            "v3.3.128-beta",
            "v3.3.127-beta",
            "v3.3.126-beta",
            "v3.3.125-beta",
            "v3.3.122-beta",
            "v3.2.105",
            "v3.2.103",
            "v3.2.100",
            "v3.1.98",
            "v3.1.93",
            "v3.1.91",
            "v3.1.79",
            "v3.1.76"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-26293.json"
          }
        }
      ],
      "modified": "2026-10-20T10:52:58.038027881Z",
      "provider": "osv",
      "references": [
        "https://github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372",
        "https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhv",
        "https://www.nuget.org/packages/HtmlSanitizer/",
        "https://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-26293",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384099,
  "published_at": "2021-01-04T19:15:14.97+00:00"
}