CVE-2025-9862: Ghost Ghost Vulnerable To Server Side Vulnerability
MODERATECVE-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
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.
npm install ghost@6.0.9
npm install ghost@5.130.4
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
CVE-2025-9862 Affected Ghost Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2025-9862?
Which Ghost versions are affected?
What version fixes CVE-2025-9862?
Is ghost affected?
What CWE is associated with CVE-2025-9862?
How can I check npm dependencies for CVE-2025-9862?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}