Description
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.
Remediation
References
https://blog.sonarsource.com/ghost-admin-takeover
https://forum.ghost.org/t/critical-security-update-available-for-ghost-4-x/22290
https://github.com/TryGhost/Ghost/security/advisories/GHSA-9fgx-q25h-jxrg
https://www.npmjs.com/package/ghost
Related Vulnerabilities
CVE-2020-7637 Vulnerability in maven package org.webjars.npm:class-transformer
CVE-2023-47324 Vulnerability in maven package org.silverpeas.core:silverpeas-core-api
CVE-2021-23353 Vulnerability in maven package org.webjars.bowergithub.mrrio:jspdf
CVE-2020-28442 Vulnerability in maven package org.webjars.bower:js-data
CVE-2022-36892 Vulnerability in maven package org.jenkins-ci.plugins:rhnpush-plugin