Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-42576

The bluemonday sanitizer before 1.0.16 for Go, and before 0.0.8 for Python (in pybluemonday), does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-42576
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:49 UTC · Revision 1

Source evidence

CVE-2021-42576

core-osv · Original source

Published 18 Oct 2021, 15:15 UTC

The bluemonday sanitizer before 1.0.16 for Go, and before 0.0.8 for Python (in pybluemonday), does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.

osv:CVE-2021-42576
Complete source record
{
  "id": "40581b78b410bcf8cfe5e446fe4fb1b60fc33eaa96355d24a217ef89b7723507",
  "url": "https://osv.dev/vulnerability/CVE-2021-42576",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-42576",
    "summary": "The bluemonday sanitizer before 1.0.16 for Go, and before 0.0.8 for Python (in pybluemonday), does not properly enforce policies associated with the SELECT, STYLE, and OPTION elements.",
    "evidence": "osv:CVE-2021-42576",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-42576",
      "aliases": [
        "CVE-2021-42576",
        "GHSA-x95h-979x-cf3j",
        "GO-2022-0588",
        "PYSEC-2021-849"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/microcosm-cc/bluemonday",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c788a2a4d42e081ad54a31368478820bb4a42fb4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:microco:bluemonday:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.0.16"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.0.15",
            "v1.0.14",
            "v1.0.13",
            "v1.0.12",
            "v1.0.11",
            "v1.0.10",
            "v1.0.9",
            "v1.0.8",
            "v1.0.7",
            "v1.0.6",
            "v1.0.5",
            "v1.0.4",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-42576.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:22.510608868Z",
      "provider": "osv",
      "references": [
        "https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:python:pybluemonday:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "python:pybluemonday",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "0.0.8"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-42576",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 430702,
  "published_at": "2021-10-18T15:15:07.823+00:00"
}