安全速报自动同步 · 保留上游原文

【严重】ghost:跨站脚本风险(GHSA-62q6-4hv4-vjrw)

S
KHack 安全情报
2026/7/2 发布 · 9 阅读

安全情报快照 · 风险级别:严重 · CVSS:9.6 · CVE-2026-53943 · GHSA-62q6-4hv4-vjrw

先看结论

ghost存在跨站脚本风险,>= 4.0.0, <= 6.36.0 受影响,建议升级至 6.37.0。

影响范围

生态 组件 受影响版本 首个修复版本
npm ghost >= 4.0.0, <= 6.36.0 6.37.0

处置建议

优先将 ghost 升级至 6.37.0 或更高版本;升级前请结合业务依赖完成兼容性验证。

上游技术详情(原文)

Impact

When Ghost is behind a shared caching layer that results in cached content being shared between different visitors (e.g., Fastly, Cloudflare, nginx proxy_cache, and others), an unauthenticated user could send an x-ghost-preview header that altered the rendered frontend response. In affected cache configurations, that response could be stored and served to subsequent visitors requesting the same page, allowing cache poisoning of request-specific preview output.

When running Ghost's frontend and admin panel on the same domain this could be used to take over staff user accounts. When running these on different domains staff accounts have no exposure.

Vulnerable versions

This vulnerability is present in Ghost from v4.0 up to v6.36.0.

Patches

v6.37.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.

If you suspect a credential compromise, use the “Reset all authentication” dialogue under Settings / Danger Zone. This is available starting with Ghost v6.41.0.

Workarounds

At the caching layer, bypass the cache for x-ghost-preview requests.

References

Ghost thanks CryptoCat for disclosing this vulnerability responsibly.

For more information

If you have any questions or comments about this advisory, email us at security@ghost.org.

来源与许可

本页自动同步 GitHub Advisory Database 的公开数据,并保留上游原文供核验;不宣称原创分析。数据许可:CC-BY-4.0。

评论

还没有评论,来说两句。