Description
Ghost versions from 0.5.3 through versions prior to 6.50.0 fail to sanitize the data placed in the JSON-LD HTML tag emitted by the {{ghost_head}} helper. An authenticated user with limited privileges can inject unescaped content that is rendered as script in the published page, potentially leading to compromise of a staff user's admin session when that user views the affected page.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| TryGhost | Ghost | 0.5.3 – < 6.50.0 | 6.50.0 |
References
- GitHub Security Advisory (GHSA-mp9q-4q6m-44f5) vendor-advisory
- VulnCheck Advisory: Ghost 0.5.3 before 6.50.0 Cross-Site Scripting via ghost_head third-party-advisory