CVE-2021-42576: bluemonday - Policy Enforcement Bypass
- Cve: CVE-2021-42576
- Name: bluemonday - Policy Enforcement Bypass
- 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.
- Impact: Attackers can inject malicious content that bypasses sanitization, leading to potential cross-site scripting or other injection attacks.
- Remediation: Update to version 1.0.16 for Go and 0.0.8 for Python or later versions.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01564
- Epss percentile: 0.75928
- Assignee: [email protected]
- Published at: 2021-10-18T15:15:07Z
- Age in days: 1863
- Modified at: 2026-06-17T04:09:51Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-42576
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-Other | — |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/ | nvd | 2021-10-18 |
References
| Url | Source | Tags |
|---|---|---|
| https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/ | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| microco:bluemonday | < 1.0.16 | no | nvd | /v1/products/microco/bluemonday |
| python:pybluemonday | < 0.0.8 | no | nvd | /v1/products/python/pybluemonday |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| microcosm-cc/bluemonday | commit, package | yes | /v1/repositories/microcosm-cc/bluemonday |
Index
- Repositories: 9
- Repositories high signal: 1
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-10-18
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts