SecurityContext

CVE-2021-32857: Cockpit - Stored XSS

  • Cve: CVE-2021-32857
  • Name: Cockpit - Stored XSS
  • 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.
  • Impact: Attackers can execute malicious scripts in the victim's browser, potentially stealing cookies, session tokens, or performing actions on behalf of the user.
  • Remediation: No known patches; consider applying input sanitization or updating to a newer version if available.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Victim needs to load malicious content
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00709
  • Epss percentile: 0.54218
  • Assignee: [email protected]
  • Published at: 2023-02-21T15:15:11Z
  • Age in days: 1372
  • Modified at: 2026-06-17T03:53:46Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32857
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://securitylab.github.com/advisories/GHSL-2021-1035_Cockpit_Next/nvd2023-02-21

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/agentejo/cockpit/blob/f7cd602bcc6134657ccfeb4e400b0050943dd243/assets/lib/uikit/js/components/htmleditor.jsPatch, Third Party Advisory
https://github.com/agentejo/cockpit/commit/0c6628cbff3e49bc317c97b03a4666b3a75f76ccPatch, Third Party Advisory
https://securitylab.github.com/advisories/GHSL-2021-1035_Cockpit_Next/Exploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
agentejo:cockpit<= 0.12.2nonvd/v1/products/agentejo/cockpit

Projects

RepositoryLink kindsIndexedUrl
agentejo/cockpitcommit, fixyes/v1/repositories/agentejo/cockpit

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2023-02-21
  • Remote: yes
  • Exposed hosts: 13915
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports