GHSA-69qc-f5m6-889c: XSS
Impact
Embed cards in the Ghost editor could be used to bypass the fix for GHSA-8vhf-xxpj-4qrg. Any staff user, including Contributors, could store scripts in post content that ran when another staff user opened the post in the editor, possibly resulting in compromise of that user's admin session.
Self-hosted sites should leave the new security.embedPreviewUrl config option at its default.
Vulnerable versions
This vulnerability is present in Ghost from v6.34.0 up to v6.65.0.
Patches
v6.67.0 contains a fix for this issue.
How to update
For self-hosters using Docker, find Docker's official Ghost image here. Updating a Docker-based Ghost instance is documented here.
If your Ghost is a Ghost-CLI install see our documentation on updating it to the latest version here.
References
Ghost thanks DONG2209 (Dong Nguyen) and Pedro Pinho for disclosing this vulnerability responsibly.
For more information
If you have any questions or comments about this advisory, email us at security@ghost.org.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/ghostto a version that resolves this vulnerability.Fixed in 6.67.0 - Upgrade
Upgrade
Ghostto a version that resolves this vulnerability.Fixed in 6.67.0 - Configuration
Leave the security.embedPreviewUrl configuration option at its default.
Ghost security.embedPreviewUrl = default
Event History
Frequently Asked Questions
Which users can exploit this issue, and who is at risk?
Any Ghost staff user, including a Contributor, can store scripts in post content through embed cards. The scripts run when another staff user opens the affected post in the editor, which can compromise that user's admin session.
Which Ghost versions need to be remediated?
Ghost versions from 6.34.0 through 6.65.0 are affected. Version 6.67.0 contains the fix.
What configuration should self-hosted deployments use if they cannot update immediately?
Self-hosted sites should leave the security.embedPreviewUrl configuration option at its default value.