{"id":"CVE-2021-32857","details":"Cockpit is a content management system that allows addition of content management functionality to any site. In versions 0.12.2 and prior, bad HTML sanitization in `htmleditor.js` may lead to cross-site scripting (XSS) issues. There are no known patches for this issue.","modified":"2026-08-07T17:02:12.062584Z","published":"2023-02-21T15:15:11.630Z","references":[{"type":"FIX","url":"https://github.com/agentejo/cockpit/blob/f7cd602bcc6134657ccfeb4e400b0050943dd243/assets/lib/uikit/js/components/htmleditor.js"},{"type":"FIX","url":"https://github.com/agentejo/cockpit/commit/0c6628cbff3e49bc317c97b03a4666b3a75f76cc"},{"type":"EVIDENCE","url":"https://securitylab.github.com/advisories/GHSL-2021-1035_Cockpit_Next/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/agentejo/cockpit","events":[{"introduced":"0"},{"last_affected":"e0ec9ef564a35ea28c0c9d10a7cfc0d99ddb2cdd"},{"fixed":"0c6628cbff3e49bc317c97b03a4666b3a75f76cc"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:agentejo:cockpit:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"0.12.2"}]}}],"versions":["0.12.2","0.12.1","0.12.0","0.11.2","0.11.1","0.11.0","0.10.2","0.10.1","0.10.0","0.9.3","0.9.2","0.7.2","0.7.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32857.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}