CVE-2026-22596
Unknown Unknown - Not Provided
SQL Injection in Ghost Admin API Allows Arbitrary Code Execution

Publication date: 2026-01-10

Last updated on: 2026-01-10

Assigner: GitHub, Inc.

Description
Ghost is a Node.js content management system. In versions 5.90.0 through 5.130.5 and 6.0.0 through 6.10.3, a vulnerability in Ghost's /ghost/api/admin/members/events endpoint allows users with authentication credentials for the Admin API to execute arbitrary SQL. This issue has been patched in versions 5.130.6 and 6.11.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-01-10
Last Modified
2026-01-10
Generated
2026-05-07
AI Q&A
2026-01-10
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 4 associated CPEs
Vendor Product Version / Range
tryghost ghost From 5.90.0 (inc) to 5.130.5 (inc)
tryghost ghost From 6.0.0 (inc) to 6.10.3 (inc)
tryghost ghost 5.130.6
tryghost ghost 6.11.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2026-22596 is a SQL injection vulnerability in the Ghost blogging platform's /ghost/api/admin/members/events endpoint. It allows users with Admin API authentication credentials to execute arbitrary SQL commands because the 'postId' parameter was not properly validated before being used in SQL queries. This improper validation allowed attackers to inject malicious SQL code. The vulnerability was fixed by validating the 'postId' as a MongoDB ObjectID, ensuring only valid IDs are accepted and preventing arbitrary SQL injection. [1, 3, 2]


How can this vulnerability impact me? :

This vulnerability can lead to high confidentiality and integrity loss by allowing an attacker with Admin API credentials to execute arbitrary SQL commands on the database. This could result in unauthorized data access, data modification, or data deletion. The availability impact is low, but the ability to manipulate or extract sensitive data poses significant risks to the system and its users. [2]


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by monitoring and inspecting requests to the /ghost/api/admin/members/events endpoint for suspicious or malformed postId parameters that are not valid MongoDB ObjectIDs. Since exploitation requires authenticated Admin API credentials, checking logs for unusual or unexpected SQL errors or anomalies in queries involving postId parameters may help. However, no specific detection commands are provided in the resources. [1, 3]


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability immediately, upgrade Ghost to version 5.130.6 or later, or 6.11.0 or later, where the issue is patched. The fix involves validating the postId parameter as a MongoDB ObjectID before using it in SQL queries, preventing SQL injection. Additionally, restrict Admin API credentials to trusted users only and monitor API usage for suspicious activity. [1, 2, 3]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart