{"id":"CVE-2021-29484","aliases":["CVE-2021-29484","GHSA-9fgx-q25h-jxrg","BIT-GHOST-2021-29484"],"related":[],"kind":"vulnerability","state":"published","title":"DOM XSS in Theme Preview","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nAn 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. \n\nGhost(Pro) has already been patched. We can find no evidence that the issue was exploited on Ghost(Pro) prior to the patch being added. \n\nSelf-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 - see patches & workarounds below.\n\n### Patches\nFixed in 4.3.3, all 4.x sites should upgrade as soon as possible.\nAs the endpoint is unused, the patch simply removes it. \n\n### Workarounds\n- Log out of Ghost Admin\n- Suspend any users who cannot log out\n- Block access to `/ghost/preview`\n\nExample of how to block access in nginx:\n\n```\nlocation ~ /ghost/preview {\n    rewrite ^(\\/(.*\\/)?ghost\\/)(.*)$ $1 redirect;\n}\n```\n\nThis redirects the endpoint to `/ghost/`, which mimics the behaviour after the patch is applied.\n\n### References\n\n- [Forum Post](https://forum.ghost.org/t/critical-security-update-available-for-ghost-4-x/22290)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* email us at security@ghost.org\n\n\n---\nCredits: Paul Gerste, SonarSource (https://www.sonarsource.com/)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Ghost es un CMS Node.js. Un endpoint sin uso agregado durante el desarrollo de la versión 4.0.0 ha dejado los sitios vulnerables a que usuarios no confiables que obtienen acceso a Ghost Admin. Los atacantes pueden conseguir acceso al hacer que unos usuarios que tengan iniciada la sesión hagan clic en un enlace que contenga código malicioso. Los usuarios no necesitan introducir sus credenciales y es posible que no sepan que han visitado un sitio malicioso. Ghost(Pro) ya ha sido parcheado. No hemos encontrado pruebas de que el problema se haya explotado en Ghost(Pro) antes de que se agregara el parche. Los  autohospedadores están afectados si ejecutan Ghost en una versión entre 4.0.0 y 4.3.2. Se deben tomar medidas inmediatas para proteger su sitio. El problema ha sido corregido en 4.3.3, todos los sitios 4.x deberían actualizarse lo antes posible. Como el endpoint sin uso, el parche simplemente lo elimina. Como solución alternativa, bloquear el acceso a /ghost/preview también puede mitigar el problema.","source":"nvd"}],"published":"2021-04-29T20:35:15.000Z","modified":"2026-09-08T08:47:17.537Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 4.0.0, < 4.3.3","status":"affected"}],"vendor":"TryGhost","product":"Ghost","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.3.3"}],"ecosystem":"npm","package":"ghost","purl":"pkg:npm/ghost","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.3.3"}],"vendor":"ghost","product":"ghost","cpe":"cpe:2.3:a:ghost:ghost:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.3.3"}],"ecosystem":"Bitnami","package":"ghost","purl":"pkg:bitnami/ghost","source":"bitnami"}],"references":[{"url":"https://github.com/TryGhost/Ghost/security/advisories/GHSA-9fgx-q25h-jxrg","tags":["advisory","mitigation","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://forum.ghost.org/t/critical-security-update-available-for-ghost-4-x/22290","tags":["advisory","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.npmjs.com/package/ghost","tags":["advisory","product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://blog.sonarsource.com/ghost-admin-takeover","tags":["advisory","exploit","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29484","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/TryGhost/Ghost/commit/14b3431de12e674a0bd562e9230e2891b6903ae2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/TryGhost/Ghost","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210618-0006","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29484","url":"https://www.cve.org/CVERecord?id=CVE-2021-29484","licence":"CVE Terms of Use","modified":"2024-08-03T22:11:05.475Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9fgx-q25h-jxrg","url":"https://github.com/advisories/GHSA-9fgx-q25h-jxrg","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:25.078Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29484","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29484","licence":"Public domain","modified":"2026-06-17T03:47:44.237Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GHOST-2021-29484","url":"https://osv.dev/vulnerability/BIT-GHOST-2021-29484","licence":"Apache-2.0","modified":"2026-09-08T08:47:17.537Z"}],"updatedAt":"2026-11-25T22:58:01.115Z","epss":{"score":0.07935,"percentile":0.94858,"date":"2026-12-01T12:00:22.000Z"}}