CVE-2022-24740: @plone/volto Sudden Swap Of User Auth Vulnerability
MODERATECVE-2022-24740 is a MODERATE (CVSS 5.0) sudden swap of user auth vulnerability (CWE-287: Improper Authentication) affecting @plone/volto libraries in the npm ecosystem. The issue involves sudden swap of user auth tokens in volto. Remediation is available by upgrading affected packages to version 15.0.0-alpha.0.
CVE-2022-24740 at a Glance
Security Impact
CVSS: 5.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L).
How to Fix CVE-2022-24740
To remediate this vulnerability, upgrade all affected @plone/volto 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 @plone/volto@15.0.0-alpha.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @plone/volto
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-24740, inspect your project dependencies using npm:
npm ls @plone/volto
Analyze the terminal output to locate any version of @plone/volto in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 15.0.0-alpha.0), your application is affected.
Note: The npm ls @plone/volto 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In @plone/volto, 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-24740 Affected @plone/volto Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@plone/volto
|
npm |
≥ 14.0.0-alpha.6
< 15.0.0-alpha.0
|
15.0.0-alpha.0
|
References
Frequently Asked Questions
What is CVE-2022-24740?
Which @plone/volto versions are affected?
What version fixes CVE-2022-24740?
Is @plone/volto affected?
What is the CVSS score of CVE-2022-24740?
What CWE is associated with CVE-2022-24740?
How can I check npm dependencies for CVE-2022-24740?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cfhh-xgwq-5r67",
"modified" : "2022-03-28T22:30:25Z",
"published" : "2022-03-14T22:15:19Z",
"aliases" : [ "CVE-2022-24740" ],
"summary" : "Sudden swap of user auth tokens in Volto",
"details" : "### Impact\nDue to the usage of an outdated version of the react-cookie library, under the circumstances of given a server high load, it is possible that a user could get his/her auth cookie replaced with the auth cookie from another user, effectively giving him full access to the other users account and privileges. A proven exploit for this vulnerability does not exist, since the exact requisites for it to happen have not been fully clarified, and the attempts to reproduce it under testing conditions have been unsuccessful, but it still can happen randomly and unintentionally in the wild. \n\n### Patches\nThe patch and fix is present in Volto 15.0.0-alpha.0 (or later). See PR: https://github.com/plone/volto/pull/3051.\nWe recommend upgrading to the final release of Volto 15 as soon as possible if running an affected version.\nSee the upgrade guide https://6-dev-docs.plone.org/volto/upgrade-guide/index.html#upgrading-to-volto-15-x-x\n\n### Workarounds\nIt is possible to create a fix by manually upgrading the react-cookie package to 4.1.1 and then overriding all Volto components that use this library as in https://github.com/plone/volto/pull/3051. As this is substantial work, an update to the Volto 15 is recommended. The upgrade steps for going from Volto 14 to Volto 15 are quite easy and do not involve any complexity. Please take a look at the upgrade guide: https://6-dev-docs.plone.org/volto/upgrade-guide/index.html#upgrading-to-volto-15-x-x\n\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [volto](https://github.com/plone/volto/issues)\n* Email us at [security@plone.org](mailto:security@plone.org)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@plone/volto"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "14.0.0-alpha.6"
}, {
"fixed" : "15.0.0-alpha.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 14.10.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/plone/volto/security/advisories/GHSA-cfhh-xgwq-5r67"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24740"
}, {
"type" : "WEB",
"url" : "https://github.com/plone/volto/pull/3051"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/plone/volto"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-03-14T22:15:19Z",
"nvd_published_at" : "2022-03-14T23:15:00Z"
}
}