# CVE-2021-42576: Policies not properly enforced in bluemonday

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.56%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-18T14:36:43.000Z
- Modified: 2026-06-17T04:09:51.287Z
- Also known as: GHSA-x95h-979x-cf3j, GO-2022-0588, PYSEC-2021-849
- Weaknesses: CWE-20
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pybluemonday (PyPI): before 0.0.8
- github.com/microcosm-cc/bluemonday (Go): before 1.0.16
- microco bluemonday: before 1.0.16
- python pybluemonday: before 0.0.8

## Every score

- GitHub: CVSS:3.1 9.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42576> (advisory)
- <https://github.com/microcosm-cc/bluemonday/commit/c788a2a4d42e081ad54a31368478820bb4a42fb4> (fix, web)
- <https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50> (web)
- <https://github.com/advisories/GHSA-x95h-979x-cf3j> (advisory)
- <https://github.com/microcosm-cc/bluemonday> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pybluemonday/PYSEC-2021-849.yaml> (web)
- <https://pkg.go.dev/vuln/GO-2022-0588> (web)
- <https://pypi.org/project/pybluemonday> (package, web)

## Sources

- CVE List: [CVE-2021-42576](https://www.cve.org/CVERecord?id=CVE-2021-42576), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-x95h-979x-cf3j](https://github.com/advisories/GHSA-x95h-979x-cf3j), CC-BY-4.0, modified 2024-10-21
- Go Vulnerability Database: [GO-2022-0588](https://pkg.go.dev/vuln/GO-2022-0588), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2021-42576](https://nvd.nist.gov/vuln/detail/CVE-2021-42576), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-849](https://osv.dev/vulnerability/PYSEC-2021-849), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-42576 · Whole record: https://cve.day/CVE-2021-42576.json · Rebuilt by cve.day 2026-11-25T22:58:04.536Z
