CVE-2021-42576
CRITICAL 9.8CVSS 3.1Policies not properly enforced in bluemonday
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.
- Published
- 18 Oct 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-x95h-979x-cf3jGO-2022-0588PYSEC-2021-849
- Sources
- NVDJSONOSV GHSA-x95h-979x-cf3jJSONOSV GO-2022-0588JSONOSV PYSEC-2021-849JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | microco | bluemondaycpe:2.3:a:microco:bluemonday:*:*:*:*:*:go:*:* |
< 1.0.16 | 1.0.16 |
| NVD | python | pybluemondaycpe:2.3:a:python:pybluemonday:*:*:*:*:*:*:*:* |
< 0.0.8 | 0.0.8 |
| OSV | PyPI | pybluemonday | < 0.0.8 | 0.0.8 |
| OSV | Go | github.com/microcosm-cc/bluemonday | < 1.0.16 | 1.0.16 |
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 · WEB, FIX
- 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 · WEB, PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 18 Oct 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Aug 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Oct 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Oct 2021)