CVE-2026-22596: Ghost SQL Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-gjrp-xgmh-x9qq
CVSS 6.7
CWE-89
Published
Advisory Summary

CVE-2026-22596 is a MODERATE (CVSS 6.7) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Ghost libraries in the npm ecosystem. The issue involves ghost has sql injection in members activity feed. Remediation is available by upgrading affected packages to version 6.11.0, 5.130.6.

CVE-2026-22596 at a Glance

CVE Identifier CVE-2026-22596
GHSA Identifier GHSA-gjrp-xgmh-x9qq
Severity MODERATE
CVSS v3.1 Base Score 6.7
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Ghost
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2026-22596

To remediate this vulnerability, upgrade all affected Ghost dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ghost fixed: 6.11.0
npm install ghost@6.11.0
ghost fixed: 5.130.6
npm install ghost@5.130.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls ghost

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-22596, inspect your project dependencies using npm:

npm ls ghost

Analyze the terminal output to locate any version of Ghost in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.11.0), your application is affected.

Note: The npm ls ghost command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where 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. In Ghost, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A vulnerability in Ghost's `/ghost/api/admin/members/events` endpoint allows users with authentication credentials for the Admin API to execute arbitrary SQL. ### Vulnerable versions This vulnerability is present in Ghost v5.90.0 to v5.130.5 to and Ghost v6.0.0 to v6.10.3. ### Patches v5.130.6 and v6.11.0 contain a fix for this issue. ### References Ghost thanks Sho Odagiri of GMO Cybersecurity by Ierae, Inc. for discovering and disclosing this vulnerability responsibly. ### For more information If there are any questions or comments about this advisory, email Ghost at [security@ghost.org](mailto:security@ghost.org).

CVE-2026-22596 Affected Ghost Versions

2 component(s)
Fixed Versions:
6.11.05.130.6
Product / Package Ecosystem Affected Versions Fixed Version
ghost
npm
≥ 6.0.0
< 6.11.0
6.11.0
ghost
npm
≥ 5.105.0
< 5.130.6
5.130.6

References

Frequently Asked Questions

What is CVE-2026-22596?
CVE-2026-22596 is a security vulnerability in Ghost involving Ghost has SQL Injection in Members Activity Feed under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Ghost versions are affected?
Affected versions include releases prior to 6.11.0, 5.130.6 across affected packages: ghost.
What version fixes CVE-2026-22596?
Upgrading to 6.11.0, 5.130.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ghost affected?
Yes, ghost is affected in releases prior to 6.11.0, 5.130.6. Upgrade your dependency to 6.11.0, 5.130.6 or later.
What is the CVSS score of CVE-2026-22596?
CVE-2026-22596 has a CVSS v3.1 base score of 6.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L.
What CWE is associated with CVE-2026-22596?
CVE-2026-22596 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (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.).
How can I check npm dependencies for CVE-2026-22596?
Run the dependency tree command: 'npm ls ghost'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gjrp-xgmh-x9qq",
  "modified" : "2026-01-11T14:54:35Z",
  "published" : "2026-01-08T21:36:37Z",
  "aliases" : [ "CVE-2026-22596" ],
  "summary" : "Ghost has SQL Injection in Members Activity Feed",
  "details" : "### Impact\nA vulnerability in Ghost's `/ghost/api/admin/members/events` endpoint allows users with authentication credentials for the Admin API to execute arbitrary SQL.\n\n### Vulnerable versions\nThis vulnerability is present in Ghost v5.90.0 to v5.130.5 to and Ghost v6.0.0 to v6.10.3.\n\n### Patches\nv5.130.6 and v6.11.0 contain a fix for this issue.\n\n### References\nGhost thanks Sho Odagiri of GMO Cybersecurity by Ierae, Inc. for discovering and disclosing this vulnerability responsibly.\n\n### For more information\nIf there are any questions or comments about this advisory, email Ghost at [security@ghost.org](mailto:security@ghost.org).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ghost"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.11.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.10.3"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ghost"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.105.0"
      }, {
        "fixed" : "5.130.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.130.5"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/TryGhost/Ghost/security/advisories/GHSA-gjrp-xgmh-x9qq"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-22596"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TryGhost/Ghost/commit/cda236e455a7a30e828b6cba3c430e5796ded955"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TryGhost/Ghost/commit/f2165f968bcdaae0e35590b38fa280ab03239391"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/TryGhost/Ghost"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-08T21:36:37Z",
    "nvd_published_at" : "2026-01-10T03:15:50Z"
  }
}