{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-42576","id":"CVE-2021-42576","title":"Policies not properly enforced in bluemonday","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.","descriptionLong":"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":"2021-10-18T14:36:43.000Z","updated":"2026-10-24T10:30:22.510608868Z","reserved":"2021-10-18T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"critical","source":"GitHub"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pybluemonday","purl":"pkg:pypi/pybluemonday","ranges":["<0.0.8"],"fixed":["0.0.8"],"advisory":"GHSA-x95h-979x-cf3j"},{"ecosystem":"Go","name":"github.com/microcosm-cc/bluemonday","purl":"pkg:golang/github.com/microcosm-cc/bluemonday","ranges":["<1.0.16"],"fixed":["1.0.16"],"advisory":"GHSA-x95h-979x-cf3j"}],"cwes":["CWE-20"],"aliases":["GHSA-x95h-979x-cf3j","GO-2022-0588","PYSEC-2021-849"],"references":[{"url":"https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42576","tags":["advisory"]},{"url":"https://github.com/microcosm-cc/bluemonday/commit/c788a2a4d42e081ad54a31368478820bb4a42fb4","tags":["web","fix"]},{"url":"https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50","tags":["web"]},{"url":"https://github.com/advisories/GHSA-x95h-979x-cf3j","tags":["advisory"]},{"url":"https://github.com/microcosm-cc/bluemonday","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pybluemonday/PYSEC-2021-849.yaml","tags":["web"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0588","tags":["web"]},{"url":"https://pypi.org/project/pybluemonday","tags":["web","package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01564,"epssPercentile":0.75779,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-42576","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42576","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-42576","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-x95h-979x-cf3j","ok":true,"note":"GHSA-x95h-979x-cf3j"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-42576","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}