{"schemaVersion":3,"id":"CVE-2021-42576","aliases":["GHSA-x95h-979x-cf3j","GO-2022-0588","PYSEC-2021-849","UBUNTU-CVE-2021-42576","DEBIAN-CVE-2021-42576"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-10-18T14:36:43.000Z","modified":"2024-08-04T03:38:49.289Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":9.3,"severity":"critical","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":9.3,"severity":"critical","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01564,"percentile":0.74913,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01564},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01564,"percentile":0.74913}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01564,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01564,"percentile":0.74913}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_4852ACB9838F6562","name":"Exploit Reference (docs.google.com)","source":"reference","url":"https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[],"affected":[{"vendor":"debian","product":"golang-github-microcosm-cc-bluemonday","name":"golang-github-microcosm-cc-bluemonday","label":"golang-github-microcosm-cc-bluemonday","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/golang-github-microcosm-cc-bluemonday","purlType":"deb","versions":[{"text":"< 1.0.16-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.16-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"golang-github-microcosm-cc-bluemonday","name":"golang-github-microcosm-cc-bluemonday","label":"golang-github-microcosm-cc-bluemonday","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/golang-github-microcosm-cc-bluemonday","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/microcosm-cc","product":"bluemonday","name":"github.com/microcosm-cc/bluemonday","label":"bluemonday","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/microcosm-cc/bluemonday","purlType":"golang","versions":[{"text":"< 1.0.16","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.16","eol":null,"hubHref":null},{"vendor":"microco","product":"bluemonday","name":"bluemonday","label":"bluemonday","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.0.16","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.16","eol":null,"hubHref":"/vendor/microco/bluemonday"},{"vendor":"PyPI","product":"pybluemonday","name":"pybluemonday","label":"pybluemonday","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pybluemonday","purlType":"pypi","versions":[{"text":"< 0.0.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.8","eol":null,"hubHref":null},{"vendor":"python","product":"pybluemonday","name":"pybluemonday","label":"pybluemonday","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.0.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.8","eol":null,"hubHref":"/vendor/python/pybluemonday"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/","label":"docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50/","hostname":"docs.google.com","tags":["X Refsource MISC","WEB","REPORT","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42576","label":"nvd.nist.gov/vuln/detail/CVE-2021-42576","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/microcosm-cc/bluemonday/commit/c788a2a4d42e081ad54a31368478820bb4a42fb4","label":"github.com/microcosm-cc/bluemonday/commit/c788a2a4d42e081ad54a31368478820bb4a42fb4","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50","label":"docs.google.com/document/d/11SoX296sMS0XoQiQbpxc5pNxSdbJKDJkm5BDv0zrX50","hostname":"docs.google.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-x95h-979x-cf3j","label":"github.com/advisories/GHSA-x95h-979x-cf3j","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/microcosm-cc/bluemonday","label":"github.com/microcosm-cc/bluemonday","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pybluemonday/PYSEC-2021-849.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/pybluemonday/PYSEC-2021-849.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0588","label":"pkg.go.dev/vuln/GO-2022-0588","hostname":"pkg.go.dev","tags":["WEB"]},{"url":"https://pypi.org/project/pybluemonday","label":"pypi.org/project/pybluemonday","hostname":"pypi.org","tags":["WEB","PACKAGE"]},{"url":"https://ubuntu.com/security/CVE-2021-42576","label":"ubuntu.com/security/CVE-2021-42576","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-42576","label":"www.cve.org/CVERecord?id=CVE-2021-42576","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-42576","label":"security-tracker.debian.org/tracker/CVE-2021-42576","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-10-18T14:36:43.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T03:38:49.289Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:21:59.321Z","stale":false,"partial":false}}