SecurityContext

CVE-2022-27139: Ghost - Stored XSS

  • Cve: CVE-2022-27139
  • Name: Ghost - Stored XSS
  • Description: An arbitrary file upload vulnerability in the file upload module of Ghost v4.39.0 allows attackers to execute arbitrary code via a crafted SVG file. NOTE: Vendor states that as outlined in Ghost's security documentation, upload of SVGs is only possible by trusted authenticated users. The uploading of SVG files to Ghost does not represent a remote code execution vulnerability. SVGs are not executable on the server, and may only execute javascript in a client's browser - this is expected and intentional functionality
  • Impact: Authenticated users can upload SVG files that may execute JavaScript in clients' browsers, leading to potential cross-site scripting attacks.
  • Remediation: Implement strict validation to restrict SVG uploads or disable SVG uploads for untrusted users.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: logged_in
  • Requirements: Attacker needs to be an authenticated user
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.04045
  • Epss percentile: 0.90791
  • Assignee: [email protected]
  • Published at: 2022-04-12T17:15:09Z
  • Age in days: 1687
  • Modified at: 2026-06-17T04:36:24Z
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-27139
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-434Unrestricted Upload of File with Dangerous Type

Public exploits

UrlSourceAdded date
https://youtu.be/FCqWEvir2wEnvd2022-04-12

References

UrlSourceTags
https://youtu.be/FCqWEvir2wEnvdExploit, Third Party Advisory
http://ghost.org/docs/security/#privilege-escalation-attacksnvd

Products

ProductAffectedPlatform boundSourcesUrl
ghost:ghost= 4.39.0nonvd/v1/products/ghost/ghost

Projects

RepositoryLink kindsIndexedUrl
tryghost/ghostpackageyes/v1/repositories/tryghost/ghost

Index

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

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-04-12
  • Remote: yes
  • Exposed hosts: 9177
  • 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