{"id":"GHSA-x95h-979x-cf3j","summary":"Policies not properly enforced in bluemonday","details":"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.","aliases":["CVE-2021-42576","GO-2022-0588","PYSEC-2021-849"],"modified":"2024-10-21T20:24:06.367686Z","published":"2021-10-19T20:15:30Z","database_specific":{"nvd_published_at":"2021-10-18T15:15:00Z","severity":"HIGH","cwe_ids":["CWE-20"],"github_reviewed_at":"2021-10-19T16:10:19Z","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42576"},{"type":"WEB","url":"https://github.com/microcosm-cc/bluemonday/commit/c788a2a4d42e081ad54a31368478820bb4a42fb4"},{"type":"WEB","url":"https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-x95h-979x-cf3j"},{"type":"PACKAGE","url":"https://github.com/microcosm-cc/bluemonday"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pybluemonday/PYSEC-2021-849.yaml"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-0588"},{"type":"WEB","url":"https://pypi.org/project/pybluemonday"}],"affected":[{"package":{"name":"pybluemonday","ecosystem":"PyPI","purl":"pkg:pypi/pybluemonday"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.8"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-x95h-979x-cf3j/GHSA-x95h-979x-cf3j.json"}},{"package":{"name":"github.com/microcosm-cc/bluemonday","ecosystem":"Go","purl":"pkg:golang/github.com/microcosm-cc/bluemonday"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.16"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-x95h-979x-cf3j/GHSA-x95h-979x-cf3j.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"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"}]}