QID 981199
QID 981199: Nodejs (npm) Security Update for ghost (GHSA-9fgx-q25h-jxrg)
Security update has been released for ghost to fix the vulnerability.
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
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 - see patches & workarounds below.
As the endpoint is unused, the patch simply removes it.Workaround:
- Log out of Ghost Admin
- Suspend any users who cannot log out
- Block access to `/ghost/preview`
Example of how to block access in nginx:
```
location ~ /ghost/preview {
rewrite ^(\/(.*\/)?ghost\/)(.*)$ $1 redirect;
}
```
This redirects the endpoint to `/ghost/`, which mimics the behaviour after the patch is applied.
- GHSA-9fgx-q25h-jxrg -
github.com/advisories/GHSA-9fgx-q25h-jxrg
CVEs related to QID 981199
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-9fgx-q25h-jxrg | ghost |
|