CVE-2025-9862: Ghost Ghost Vulnerable To Server Side Vulnerability

MODERATE
Advisory Identifier: GHSA-f7qg-xj45-w956
CWE-918
Published
Advisory Summary

CVE-2025-9862 is a MODERATE ghost vulnerable to server side vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Ghost libraries in the npm ecosystem. The issue involves ghost vulnerable to server side request forgery (ssrf) via oembed bookmark. Remediation is available by upgrading affected packages to version 6.0.9, 5.130.4.

CVE-2025-9862 at a Glance

CVE Identifier CVE-2025-9862
GHSA Identifier GHSA-f7qg-xj45-w956
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Ghost
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-9862

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.0.9
npm install ghost@6.0.9
ghost fixed: 5.130.4
npm install ghost@5.130.4
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-2025-9862, 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.0.9), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. 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 oEmbed mechanism allows staff users to exfiltrate data from internal systems via SSRF. ### Vulnerable versions This vulnerability is present in Ghost v5.99.0 to v5.130.3 to and Ghost v6.0.0 to v6.0.8. ### Patches v5.130.4 and v6.0.9 contain a fix for this issue. ### References The original report is available here: https://fluidattacks.com/advisories/regida We thank Cristian Vargas for discovering and disclosing this vulnerability responsibly. ### For more information If you have any questions or comments about this advisory, email us at [security@ghost.org](mailto:security@ghost.org).

CVE-2025-9862 Affected Ghost Versions

2 component(s)
Fixed Versions:
6.0.95.130.4
Product / Package Ecosystem Affected Versions Fixed Version
ghost
npm
≥ 6.0.0
< 6.0.9
6.0.9
ghost
npm
≥ 5.99.0
< 5.130.4
5.130.4

References

Frequently Asked Questions

What is CVE-2025-9862?
CVE-2025-9862 is a security vulnerability in Ghost involving Ghost vulnerable to Server Side Request Forgery (SSRF) via oEmbed Bookmark under CWE-918: Server-Side Request Forgery (SSRF).
Which Ghost versions are affected?
Affected versions include releases prior to 6.0.9, 5.130.4 across affected packages: ghost.
What version fixes CVE-2025-9862?
Upgrading to 6.0.9, 5.130.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ghost affected?
Yes, ghost is affected in releases prior to 6.0.9, 5.130.4. Upgrade your dependency to 6.0.9, 5.130.4 or later.
What CWE is associated with CVE-2025-9862?
CVE-2025-9862 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check npm dependencies for CVE-2025-9862?
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-f7qg-xj45-w956",
  "modified" : "2025-09-22T15:49:29Z",
  "published" : "2025-09-15T20:31:14Z",
  "aliases" : [ "CVE-2025-9862" ],
  "summary" : "Ghost vulnerable to Server Side Request Forgery (SSRF) via oEmbed Bookmark",
  "details" : "### Impact\n\nA vulnerability in Ghost's oEmbed mechanism allows staff users to exfiltrate data from internal systems via SSRF.\n\n### Vulnerable versions\n\nThis vulnerability is present in Ghost v5.99.0 to v5.130.3 to and Ghost v6.0.0 to v6.0.8.\n\n### Patches\n\nv5.130.4 and v6.0.9 contain a fix for this issue.\n\n### References\n\nThe original report is available here: https://fluidattacks.com/advisories/regida\n\nWe thank Cristian Vargas for discovering and disclosing this vulnerability responsibly. \n\n### For more information\n\nIf you have any questions or comments about this advisory, email us at [security@ghost.org](mailto:security@ghost.org).",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ghost"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.0.9"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.0.8"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ghost"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.99.0"
      }, {
        "fixed" : "5.130.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.130.3"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/TryGhost/Ghost/security/advisories/GHSA-f7qg-xj45-w956"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-9862"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TryGhost/Ghost/commit/01d64c7c0ffbf90cd036195c60ded6d08077d612"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TryGhost/Ghost/commit/ffe9d079afa68557c581d224f1ff126e625b06e3"
  }, {
    "type" : "WEB",
    "url" : "https://fluidattacks.com/advisories/regida"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/TryGhost/Ghost"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TryGhost/Ghost/releases/tag/v6.0.9"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-15T20:31:14Z",
    "nvd_published_at" : "2025-09-17T15:15:43Z"
  }
}