CVE-2021-42576Microco Bluemonday
Critical 9.8 No auth needed
Follow: this CVE · Microco · Microco Bluemonday We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 76
- Auth required
- No
- Published
- Oct 18, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Bluemonday.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/microcosm-cc/bluemonday |
< 1.0.16 |
1.0.16 |
go get github.com/microcosm-cc/bluemonday@v1.0.16 |
| Go | github.com/microcosm-cc/bluemonday |
< 1.0.16 |
1.0.16 |
go get github.com/microcosm-cc/bluemonday@v1.0.16 |
| PyPI | pybluemonday |
< 0.0.8 |
0.0.8 |
pip install "pybluemonday>=0.0.8" |
| PyPI | pybluemonday |
< 0.0.8 |
0.0.8 |
pip install "pybluemonday>=0.0.8" |
Per OSV / GitHub Advisories (GHSA-x95h-979x-cf3j, GO-2022-0588, PYSEC-2021-849). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| microco | bluemonday | < 1.0.16 |
| python | pybluemonday | < 0.0.8 |
Official sources
References
Links published by the sources. Open them with care.
- docs.google.com Exploit Third Party Advisory