GHSA-65p7-pjj8-ggmr: Ghost Member Account Takeover Vulnerability
MODERATEGHSA-65p7-pjj8-ggmr is a MODERATE (CVSS 6.5) member account takeover vulnerability (General Security Weakness) affecting Ghost libraries in the npm ecosystem. The issue involves member account takeover. Remediation is available by upgrading affected packages to version 3.42.6, 4.15.1.
GHSA-65p7-pjj8-ggmr at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix GHSA-65p7-pjj8-ggmr
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@3.42.6
npm install ghost@4.15.1
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 GHSA-65p7-pjj8-ggmr, 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 3.42.6), 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 General Security Weakness. 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
GHSA-65p7-pjj8-ggmr Affected Ghost Versions
2 component(s)References
Frequently Asked Questions
What is GHSA-65p7-pjj8-ggmr?
Which Ghost versions are affected?
What version fixes GHSA-65p7-pjj8-ggmr?
Is ghost affected?
What is the CVSS score of GHSA-65p7-pjj8-ggmr?
What CWE is associated with GHSA-65p7-pjj8-ggmr?
How can I check npm dependencies for GHSA-65p7-pjj8-ggmr?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-65p7-pjj8-ggmr",
"modified" : "2021-09-23T21:14:22Z",
"published" : "2021-09-23T23:18:42Z",
"aliases" : [ ],
"summary" : "Member account takeover",
"details" : "### Impact\n\nAn error in the implementation of the member email change functionality allows unauthenticated users to change the email address of arbitrary member accounts to one they control by crafting a request to the relevant API endpoint, and validating the new address via magic link sent to the new email address.\n\nGhost(Pro) has already been patched. Self-hosters are impacted if running Ghost a version between 3.18.0 and 4.15.0 with members functionality enabled.\n\n### Patches\n\nFixed in 4.15.1, all 4.x sites should upgrade as soon as possible.\nFixed in 3.42.6, all 3.x sites should upgrade as soon as possible.\n\n### Workarounds\n\nThe patch in 4.15.1 and 3.42.6 adds a new authenticated endpoint for updating member email addresses. Updating Ghost is the quickest complete solution.\n\nAs a workaround, if for any reason you cannot update your Ghost instance, you can block the `POST /members/api/send-magic-link/` endpoint, which will also disable member login and signup for your site.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Email us at [security@ghost.org](mailto:security@ghost.org)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ghost"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.18.0"
}, {
"fixed" : "3.42.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "ghost"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.15.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/TryGhost/Ghost/security/advisories/GHSA-65p7-pjj8-ggmr"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/TryGhost/Ghost"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-09-23T21:14:22Z",
"nvd_published_at" : null
}
}