Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-6817

bleach.clean behavior parsing style attributes could result in a regular expression denial of service (ReDoS). Calls to bleach.clean with an allowed tag with an allowed style attribute are vulnerable to ReDoS. For example, bleach.clean(..., attributes={'a': ['style']}).

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

Source evidence

CVE-2020-6817

core-osv · Original source

Published 16 Feb 2023, 22:15 UTC

bleach.clean behavior parsing style attributes could result in a regular expression denial of service (ReDoS). Calls to bleach.clean with an allowed tag with an allowed style attribute are vulnerable to ReDoS. For example, bleach.clean(..., attributes={'a': ['style']}).

osv:CVE-2020-6817
Complete source record
{
  "id": "f49dad16791fd32f6b9129c16bcfd17079c4771c0a57be540bb23b94d7ed10a6",
  "url": "https://osv.dev/vulnerability/CVE-2020-6817",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-6817",
    "summary": "bleach.clean behavior parsing style attributes could result in a regular expression denial of service (ReDoS). Calls to bleach.clean with an allowed tag with an allowed style attribute are vulnerable to ReDoS. For example, bleach.clean(..., attributes={'a': ['style']}).",
    "evidence": "osv:CVE-2020-6817",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2020-6817",
      "aliases": [
        "CVE-2020-6817",
        "GHSA-vqhp-cxgc-6wmm",
        "PYSEC-2020-340",
        "SNYK-PYTHON-BLEACH-561754"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mozilla/bleach",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6e74a5027b57055cdaeb040343d32934121392a7"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mozilla:bleach:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.1.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.1.3",
            "v3.1.0",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "v2.1.4",
            "v2.1.3",
            "v2.1.2",
            "v2.1.1",
            "v2.1",
            "v2.0",
            "v1.5",
            "v1.4.2",
            "v1.4.1",
            "v1.4",
            "v1.2.2",
            "v1.2.1",
            "v1.1.1",
            "v1.1.0",
            "v1.0.4",
            "1.0.3",
            "1.0.2",
            "1.0.1",
            "1.0.0",
            "1.0.0rc2",
            "0.5.0",
            "1.0.0rc",
            "0.4.0",
            "0.3.5",
            "0.3.4",
            "0.3.3",
            "0.3.2",
            "0.3.1",
            "0.3.0",
            "0.2.2",
            "0.2.1",
            "0.2.0",
            "0.1.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-6817.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:23.342990607Z",
      "provider": "osv",
      "references": [
        "https://github.com/mozilla/bleach/security/advisories/GHSA-vqhp-cxgc-6wmm",
        "https://bugzilla.mozilla.org/show_bug.cgi?id=1623633"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-6817",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385264,
  "published_at": "2023-02-16T22:15:10.65+00:00"
}