{"id":"CVE-2021-29272","aliases":["CVE-2021-29272","GHSA-3x58-xr87-2fcj","GO-2022-0762"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site scripting in bluemonday","summary":"bluemonday before 1.0.5 allows XSS because certain Go lowercasing converts an uppercase Cyrillic character, defeating a protection mechanism against the \"script\" string.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"bluemonday before 1.0.5 allows XSS because certain Go lowercasing converts an uppercase Cyrillic character, defeating a protection mechanism against the \"script\" string.","source":"cvelist"},{"lang":"en","text":"An XSS injection was possible because the sanitization of the Cyrillic character i bypass a protection mechanism against user-inputted HTML elements such as the <script> tag.","format":"markdown","source":"go"},{"lang":"es","text":"bluemonday versiones anteriores a 1.0.5, permite un ataque de tipo XSS porque determinadas minúsculas Go se convierten a un carácter Cyrillic en mayúsculas, anulando un mecanismo de protección contra la cadena \"script\".","source":"nvd"}],"published":"2021-03-27T17:57:28.000Z","modified":"2026-11-23T20:30:03.208Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.5"}],"ecosystem":"Go","package":"github.com/microcosm-cc/bluemonday","purl":"pkg:golang/github.com/microcosm-cc/bluemonday","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20171222150656-5793ebcff14d"},{"type":"semver","introduced":"0.0.0-20190711225452-876b4780bed1","status":"affected","fixed":"0.0.0-20210327103112-524f142fe46e"},{"type":"semver","introduced":"1.0.3-0.20190711225452-876b4780bed1","status":"affected","fixed":"1.0.5"}],"ecosystem":"Go","package":"github.com/microcosm-cc/bluemonday","purl":"pkg:golang/github.com/microcosm-cc/bluemonday","source":"go"},{"ranges":[{"status":"affected","fixed":"1.0.5"}],"vendor":"microco","product":"bluemonday","cpe":"cpe:2.3:a:microco:bluemonday:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/microcosm-cc/bluemonday/releases/tag/v1.0.5","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://vuln.ryotak.me/advisories/4","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29272","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/microcosm-cc/bluemonday/issues/111","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/microcosm-cc/bluemonday/commit/524f142fe46e945b7dcd291d7805c4b7dcf75bee","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/microcosm-cc/bluemonday","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0762","tags":["web"],"sources":["ghsa"]},{"url":"https://vuln.ryotak.me/advisories/4.txt","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29272","url":"https://www.cve.org/CVERecord?id=CVE-2021-29272","licence":"CVE Terms of Use","modified":"2024-08-03T22:02:51.440Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3x58-xr87-2fcj","url":"https://github.com/advisories/GHSA-3x58-xr87-2fcj","licence":"CC-BY-4.0","modified":"2024-05-20T21:19:56.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0762","url":"https://pkg.go.dev/vuln/GO-2022-0762","licence":"CC-BY-4.0","modified":"2026-11-23T20:30:03.208Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29272","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29272","licence":"Public domain","modified":"2026-06-17T03:47:28.930Z"}],"updatedAt":"2026-11-25T22:58:00.475Z","epss":{"score":0.00929,"percentile":0.61584,"date":"2026-12-01T12:00:22.000Z"}}