CVE-2022-41654: Ghost Ghost Vulnerable To Unauthorized Newsletter Vulnerability
HIGHCVE-2022-41654 is a HIGH (CVSS 8.5) ghost vulnerable to unauthorized newsletter vulnerability (CWE-284: Improper Access Control) affecting Ghost libraries in the npm ecosystem. The issue involves ghost vulnerable to unauthorized newsletter modification via improper access controls. Remediation is available by upgrading affected packages to version 5.22.7, 4.48.8.
CVE-2022-41654 at a Glance
Security Impact
CVSS: 8.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N).
How to Fix CVE-2022-41654
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@5.22.7
npm install ghost@4.48.8
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-2022-41654, 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 5.22.7), 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. 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-2022-41654 Affected Ghost Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2022-41654?
Which Ghost versions are affected?
What version fixes CVE-2022-41654?
Is ghost affected?
What is the CVSS score of CVE-2022-41654?
What CWE is associated with CVE-2022-41654?
How can I check npm dependencies for CVE-2022-41654?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9gh8-wp53-ccc6",
"modified" : "2022-12-30T01:41:15Z",
"published" : "2022-11-28T22:06:24Z",
"aliases" : [ "CVE-2022-41654" ],
"summary" : "ghost vulnerable to unauthorized newsletter modification via improper access controls",
"details" : "### Impact\n\nOn sites where members is enabled (this is the default) it is possible for members (unprivileged users) to make changes to newsletter settings. This gives unprivileged users the ability to view and change settings they were not intended to have access to. They are not able to escalate their privileges permanently or get access to further information. This issue was caused by a gap in our API validation for nested objects.\n\nGhost(Pro) has already been patched. We can find no evidence that the issue was exploited on Ghost(Pro) prior to the patch being added.\n\nSelf-hosters are impacted if running Ghost a version between v4.46.0 and v4.48.7 or any version of v5 prior to v5.22.7. Immediate action should be taken to secure your site - see patches & workarounds below.\n\n### Patches\n- v4.48.8 / v5.22.7 are patched for all known exploits.\n- v4.48.9 / v5.24.1 contain deeper fixes to the API to close the potential for this vulnerability to appear elsewhere or regress \n\n### Workarounds\nThe known exploit can be prevented by [disabling members](https://ghost.org/help/can-i-disable-memberships/) until an update can be performed.\n\n### References\n- [forum post](https://forum.ghost.org/t/security-update-available-for-ghost-4-x-and-4-x/34475)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [security@ghost.org](mailto:security@ghost.org)\n\n---\n\nCredits: Dave McDaniel and other members of [Cisco Talos](https://talosintelligence.com/vulnerability_reports)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ghost"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.22.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "ghost"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.46.0"
}, {
"fixed" : "4.48.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/TryGhost/Ghost/security/advisories/GHSA-9gh8-wp53-ccc6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-41654"
}, {
"type" : "WEB",
"url" : "https://forum.ghost.org/t/security-update-available-for-ghost-4-48-7-and-5-22-6/34475"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/TryGhost/Ghost"
}, {
"type" : "WEB",
"url" : "https://talosintelligence.com/vulnerability_reports/TALOS-2022-1624"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-28T22:06:24Z",
"nvd_published_at" : "2022-12-22T10:15:00Z"
}
}