CVE-2021-42576
The bluemonday sanitizer before 1.0.16 for Go, and before 0.0.8 for Py ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 11 | golang-github-microcosm-cc-bluemonday | no fix listed |
| debian 12 | golang-github-microcosm-cc-bluemonday | 1.0.16-1 |
| debian 13 | golang-github-microcosm-cc-bluemonday | 1.0.16-1 |
| debian 14 | golang-github-microcosm-cc-bluemonday | 1.0.16-1 |
| echo | golang-github-microcosm-cc-bluemonday | 1.0.16-1 |
| go::GitHub Security Advisory Go | github.com/microcosm-cc/bluemonday | 1.0.16 |
| pip::GitHub Security Advisory pip | pybluemonday | 0.0.8 |
References
- https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50
- https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/
- https://github.com/advisories/GHSA-x95h-979x-cf3j
- https://github.com/microcosm-cc/bluemonday
- https://github.com/microcosm-cc/bluemonday/commit/c788a2a4d42e081ad54a31368478820bb4a42fb4
- https://github.com/pypa/advisory-database/tree/main/vulns/pybluemonday/PYSEC-2021-849.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2021-42576
- https://pkg.go.dev/vuln/GO-2022-0588