{"id":"CVE-2021-29484","published":"2021-04-29T20:35:15Z","modified":"2024-08-03T22:11:05Z","title":"DOM XSS in Theme Preview","vendor":"TryGhost","product":"Ghost","tier":"tail","description":{"text":"Ghost is a Node.js CMS. An unused endpoint added during the development of 4.0.0 has left sites vulnerable to untrusted users gaining access to Ghost Admin. Attackers can gain access by getting logged in users to click a link containing malicious code. Users do not need to enter credentials and may not know they've visited a malicious site. Ghost(Pro) has already been patched. We can find no evidence that the issue was exploited on Ghost(Pro) prior to the patch being added. Self-hosters are impacted if running Ghost a version between 4.0.0 and 4.3.2. Immediate action should be taken to secure your site. The issue has been fixed in 4.3.3, all 4.x sites should upgrade as soon as possible. As the endpoint is unused, the patch simply removes it. As a workaround blocking access to /ghost/preview can also mitigate the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.07935,"percentile":0.94864,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/TryGhost/Ghost/security/advisories/GHSA-9fgx-q25h-jxrg","tags":["x_refsource_CONFIRM"]},{"url":"https://forum.ghost.org/t/critical-security-update-available-for-ghost-4-x/22290","tags":["x_refsource_MISC"]},{"url":"https://www.npmjs.com/package/ghost","tags":["x_refsource_MISC"]},{"url":"https://blog.sonarsource.com/ghost-admin-takeover","tags":["x_refsource_CONFIRM"]}],"priority":{"score":28.7,"factors":[{"name":"EPSS percentile","points":18.97},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.76}]},"exploitSources":{"nuclei":[{"id":"CVE-2021-29484","name":"Ghost CMS <=4.32 - Cross-Site Scripting","severity":"medium","path":"http/cves/2021/CVE-2021-29484.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-29484.yaml"}],"provenance":"source"},"vendorSlug":"tryghost","affectedVersions":[{"vendor":"TryGhost","product":"Ghost","versions":[">= 4.0.0, < 4.3.3"]}],"affected":[{"ecosystem":"npm","package":"ghost","vulnerableRanges":[">=4.0.0, <4.3.3"],"patched":["4.3.3"],"from":["GHSA-9fgx-q25h-jxrg"],"provenance":"source"}],"summary":{"text":"A DOM-based cross-site scripting flaw in the theme preview endpoint of TryGhost's Ghost Node.js CMS, introduced during development of 4.0.0, lets untrusted input reach Ghost Admin. An attacker can exploit it over the network by getting a logged-in user to click a crafted link, without needing credentials, while the victim may be unaware of the malicious page, and this affects self-hosted Ghost versions from 4.0.0 through 4.3.2.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:03:58Z"},"euvd":{"id":"EUVD-2021-0804","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-8134","published":"2020-03-20","fixed":"3.10.0","kev":false},{"cve":"CVE-2021-29484","published":"2021-04-29","fixed":"4.3.3","kev":false},{"cve":"CVE-2021-39192","published":"2021-09-03","fixed":"4.10.0","kev":false,"link":{"from":"CVE-2021-29484","to":"CVE-2021-39192","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:ghost","fromFixed":"4.3.3","toFixed":"4.10.0","daysApart":127}]}},{"cve":"CVE-2022-41654","published":"2022-12-23","fixed":"5.22.7","kev":false},{"cve":"CVE-2023-32235","published":"2023-05-05","fixed":"5.42.1","kev":false}],"package":"npm:ghost"}}