SecurityContext

CVE-2021-42650: Portainer - Stored XSS

  • Cve: CVE-2021-42650
  • Name: Portainer - Stored XSS
  • Description: Cross Site Scripting (XSS vulnerability exists in Portainer before 2.9.1 via the node input box in Custom Templates.
  • Impact: Attackers can execute arbitrary scripts in the victim's browser, potentially leading to session hijacking or data theft.
  • Remediation: Update to version 2.9.1 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Victim needs to load malicious template
  • 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.00626
  • Epss percentile: 0.50943
  • Assignee: [email protected]
  • Published at: 2021-10-18T21:15:08Z
  • Age in days: 1863
  • Modified at: 2026-06-17T04:09:54Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-42650
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

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

References

UrlSourceTags
https://github.com/portainer/portainer/pull/5766nvdPatch, Third Party Advisory
https://github.com/purple-WL/Security-vulnerability/blob/main/Portainer%20Custom%20Templates%20xssnvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
portainer:portainer< 2.9.1nonvd/v1/products/portainer/portainer

Projects

RepositoryLink kindsIndexedUrl
portainer/portainerfix, pullyes/v1/repositories/portainer/portainer

Index

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

Exploitation

  • Remote: yes
  • Exposed hosts: 108130
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports