# CVE-2021-42576

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-10-18 · Modified: 2024-08-04
- Aliases: GHSA-x95h-979x-cf3j, GO-2022-0588, PYSEC-2021-849, UBUNTU-CVE-2021-42576, DEBIAN-CVE-2021-42576
- Record: https://cvemate.com/vulnerability/CVE-2021-42576 · JSON: https://cvemate.com/vulnerability/CVE-2021-42576/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.564%, percentile 76.138%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian golang-github-microcosm-cc-bluemonday (Debian): \< 1.0.16-1
- ubuntu golang-github-microcosm-cc-bluemonday (Ubuntu): All versions (No fix recorded)
- github.com/microcosm-cc bluemonday (Go): \< 1.0.16
- microco bluemonday: \< 1.0.16
- PyPI pybluemonday (PyPI): \< 0.0.8
- python pybluemonday: \< 0.0.8

## References

- <https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42576>
- <https://github.com/microcosm-cc/bluemonday/commit/c788a2a4d42e081ad54a31368478820bb4a42fb4>
- <https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50>
- <https://github.com/advisories/GHSA-x95h-979x-cf3j>
- <https://github.com/microcosm-cc/bluemonday>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pybluemonday/PYSEC-2021-849.yaml>
- <https://pkg.go.dev/vuln/GO-2022-0588>
- <https://pypi.org/project/pybluemonday>
- <https://ubuntu.com/security/CVE-2021-42576>
- <https://www.cve.org/CVERecord?id=CVE-2021-42576>
- <https://security-tracker.debian.org/tracker/CVE-2021-42576>

---

Data as of 2026-12-05T03:31:29.062Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
