{"api_version":"1","generated_at":"2026-04-23T10:20:06+00:00","cve":"CVE-2021-32857","urls":{"html":"https://cve.report/CVE-2021-32857","api":"https://cve.report/api/cve/CVE-2021-32857.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32857","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32857"},"summary":{"title":"CVE-2021-32857","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-02-21 15:15:00","updated_at":"2023-03-02 16:21:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/agentejo/cockpit/blob/f7cd602bcc6134657ccfeb4e400b0050943dd243/assets/lib/uikit/js/components/htmleditor.js","name":"https://github.com/agentejo/cockpit/blob/f7cd602bcc6134657ccfeb4e400b0050943dd243/assets/lib/uikit/js/components/htmleditor.js","refsource":"MISC","tags":[],"title":"cockpit/htmleditor.js at f7cd602bcc6134657ccfeb4e400b0050943dd243 · agentejo/cockpit · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/agentejo/cockpit/commit/0c6628cbff3e49bc317c97b03a4666b3a75f76cc","name":"https://github.com/agentejo/cockpit/commit/0c6628cbff3e49bc317c97b03a4666b3a75f76cc","refsource":"MISC","tags":[],"title":"prevent session fixation attacks · agentejo/cockpit@0c6628c · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://securitylab.github.com/advisories/GHSL-2021-1035_Cockpit_Next/","name":"https://securitylab.github.com/advisories/GHSL-2021-1035_Cockpit_Next/","refsource":"CONFIRM","tags":[],"title":"GHSL-2021-1035: Cross-Site Scripting (XXS) in Cockpit Next - CVE-2021-32857 | GitHub Security Lab","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32857","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32857","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32857","vulnerable":"1","versionEndIncluding":"0.12.2","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"agentejo","cpe5":"cockpit","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32857","STATE":"PUBLIC","TITLE":"Cockpit vulnerable to Cross-site Scripting"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"microweber","version":{"version_data":[{"version_affected":"<=","version_name":"0.12.2","version_value":"0.12.2"}]}}]},"vendor_name":"microweber"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79 Cross-site Scripting (XSS)"}]}]},"references":{"reference_data":[{"name":"https://securitylab.github.com/advisories/GHSL-2021-1035_Cockpit_Next/","refsource":"CONFIRM","url":"https://securitylab.github.com/advisories/GHSL-2021-1035_Cockpit_Next/"},{"name":"https://github.com/agentejo/cockpit/commit/0c6628cbff3e49bc317c97b03a4666b3a75f76cc","refsource":"MISC","url":"https://github.com/agentejo/cockpit/commit/0c6628cbff3e49bc317c97b03a4666b3a75f76cc"},{"name":"https://github.com/agentejo/cockpit/blob/f7cd602bcc6134657ccfeb4e400b0050943dd243/assets/lib/uikit/js/components/htmleditor.js","refsource":"MISC","url":"https://github.com/agentejo/cockpit/blob/f7cd602bcc6134657ccfeb4e400b0050943dd243/assets/lib/uikit/js/components/htmleditor.js"}]},"source":{"advisory":"GHSL-2021-1035","defect":["GHSL-2021-1035"],"discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2023-02-21 15:15:00","lastModifiedDate":"2023-03-02 16:21:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:agentejo:cockpit:*:*:*:*:*:*:*:*","versionEndIncluding":"0.12.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32857","Ordinal":"208245","Title":"CVE-2021-32857","CVE":"CVE-2021-32857","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32857","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}