CVE-2022-24740: @plone/volto Sudden Swap Of User Auth Vulnerability

MODERATE
Advisory Identifier: GHSA-cfhh-xgwq-5r67
CVSS 5.0
CWE-287
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-24740
GHSA Identifier GHSA-cfhh-xgwq-5r67
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-287: Improper Authentication
Affected Product @plone/volto
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

@plone/volto fixed: 15.0.0-alpha.0
npm install @plone/volto@15.0.0-alpha.0
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 @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

### Impact Due 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. ### Patches The patch and fix is present in Volto 15.0.0-alpha.0 (or later). See PR: https://github.com/plone/volto/pull/3051. We recommend upgrading to the final release of Volto 15 as soon as possible if running an affected version. See the upgrade guide https://6-dev-docs.plone.org/volto/upgrade-guide/index.html#upgrading-to-volto-15-x-x ### Workarounds It 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 ### For more information If you have any questions or comments about this advisory: * Open an issue in [volto](https://github.com/plone/volto/issues) * Email us at [security@plone.org](mailto:security@plone.org)

CVE-2022-24740 Affected @plone/volto Versions

1 component(s)
Fixed Versions:
15.0.0-alpha.0
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?
CVE-2022-24740 is a security vulnerability in @plone/volto involving Sudden swap of user auth tokens in Volto under CWE-287: Improper Authentication.
Which @plone/volto versions are affected?
Affected versions include releases prior to 15.0.0-alpha.0 across affected packages: @plone/volto.
What version fixes CVE-2022-24740?
Upgrading to 15.0.0-alpha.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @plone/volto affected?
Yes, @plone/volto is affected in releases prior to 15.0.0-alpha.0. Upgrade your dependency to 15.0.0-alpha.0 or later.
What is the CVSS score of CVE-2022-24740?
CVE-2022-24740 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2022-24740?
CVE-2022-24740 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check npm dependencies for CVE-2022-24740?
Run the dependency tree command: 'npm ls @plone/volto'. 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-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"
  }
}