CVE-2024-22421: Jupyterlab JupyterLab Vulnerable To Potential Authentication Vulnerability

HIGH
Advisory Identifier: GHSA-44cc-43rp-5947
CVSS 7.6
CWE-200
Published
Advisory Summary

CVE-2024-22421 is a HIGH (CVSS 7.6) jupyterlab vulnerable to potential authentication vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Jupyterlab libraries in the PyPI ecosystem. The issue involves jupyterlab vulnerable to potential authentication and csrf tokens leak. Remediation is available by upgrading affected packages to version 4.0.11, 3.6.7, 7.0.7.

CVE-2024-22421 at a Glance

CVE Identifier CVE-2024-22421
GHSA Identifier GHSA-44cc-43rp-5947
Severity HIGH
CVSS v3.1 Base Score 7.6
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Jupyterlab
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.6

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:R/S:U/C:H/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-22421

To remediate this vulnerability, upgrade all affected Jupyterlab dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

jupyterlab fixed: 4.0.11
pip install jupyterlab>=4.0.11
jupyterlab fixed: 3.6.7
pip install jupyterlab>=3.6.7
notebook fixed: 7.0.7
pip install notebook>=7.0.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show jupyterlab

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-22421, inspect your installed packages using pip:

pip show jupyterlab

Analyze the terminal output to locate any version of Jupyterlab in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.11), your application is affected.

Note: The pip show jupyterlab command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Jupyterlab, 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 Users of JupyterLab who click on a malicious link may get their `Authorization` and `XSRFToken` tokens exposed to a third party when running an older `jupyter-server` version. ### Patches JupyterLab 4.1.0b2, 4.0.11, and 3.6.7 were patched. ### Workarounds No workaround has been identified, however users should ensure to upgrade `jupyter-server` to version 2.7.2 or newer which includes a redirect vulnerability fix. ### References Vulnerability reported by user @davwwwx via the [bug bounty program](https://app.intigriti.com/programs/jupyter/jupyter/detail) [sponsored by the European Commission](https://commission.europa.eu/news/european-commissions-open-source-programme-office-starts-bug-bounties-2022-01-19_en) and hosted on the [Intigriti platform](https://www.intigriti.com/).

CVE-2024-22421 Affected Jupyterlab Versions

3 component(s)
Fixed Versions:
4.0.113.6.77.0.7
Product / Package Ecosystem Affected Versions Fixed Version
jupyterlab
PyPI
≥ 4.0.0
< 4.0.11
4.0.11
jupyterlab
PyPI
< 3.6.7
3.6.7
notebook
PyPI
≥ 7.0.0
< 7.0.7
7.0.7

References

Frequently Asked Questions

What is CVE-2024-22421?
CVE-2024-22421 is a security vulnerability in Jupyterlab involving JupyterLab vulnerable to potential authentication and CSRF tokens leak under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Jupyterlab versions are affected?
Affected versions include releases prior to 4.0.11, 3.6.7, 7.0.7 across affected packages: jupyterlab, notebook.
What version fixes CVE-2024-22421?
Upgrading to 4.0.11, 3.6.7, 7.0.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jupyterlab affected?
Yes, jupyterlab is affected in releases prior to 4.0.11, 3.6.7. Upgrade your dependency to 4.0.11, 3.6.7 or later.
Is notebook affected?
Yes, notebook is affected in releases prior to 7.0.7. Upgrade your dependency to 7.0.7 or later.
What is the CVSS score of CVE-2024-22421?
CVE-2024-22421 has a CVSS v3.1 base score of 7.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L.
What CWE is associated with CVE-2024-22421?
CVE-2024-22421 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2024-22421?
Run the dependency tree command: 'pip show jupyterlab'. 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-44cc-43rp-5947",
  "modified" : "2024-01-22T20:57:53Z",
  "published" : "2024-01-19T20:28:10Z",
  "aliases" : [ "CVE-2024-22421" ],
  "summary" : "JupyterLab vulnerable to potential authentication and CSRF tokens leak",
  "details" : "### Impact\nUsers of JupyterLab who click on a malicious link may get their `Authorization` and `XSRFToken` tokens exposed to a third party when running an older `jupyter-server` version.\n\n### Patches\nJupyterLab 4.1.0b2, 4.0.11, and 3.6.7 were patched.\n\n### Workarounds\nNo workaround has been identified, however users should ensure to upgrade `jupyter-server` to version 2.7.2 or newer which includes a redirect vulnerability fix.\n\n### References\n\nVulnerability reported by user @davwwwx via the [bug bounty program](https://app.intigriti.com/programs/jupyter/jupyter/detail) [sponsored by the European Commission](https://commission.europa.eu/news/european-commissions-open-source-programme-office-starts-bug-bounties-2022-01-19_en) and hosted on the [Intigriti platform](https://www.intigriti.com/).\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "jupyterlab"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.11"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.0.10"
    }
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "jupyterlab"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.6.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.6.6"
    }
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "notebook"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.0.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 7.0.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-44cc-43rp-5947"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-22421"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/commit/19bd9b96cb2e77170a67e43121637d0b5619e8c6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/commit/1ef7a4fa0202ebdf663e1cc0b45c8813a34a0b96"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterlab/jupyterlab/commit/fccd83dc4441da0384ee3fd1322c3b2d9ad4caaa"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jupyterlab/jupyterlab"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UQJKNRDRFMKGVRIYNNN6CKMNJDNYWO2H"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-19T20:28:10Z",
    "nvd_published_at" : "2024-01-19T21:15:09Z"
  }
}