CVE-2024-22421: Jupyterlab JupyterLab Vulnerable To Potential Authentication Vulnerability
HIGHCVE-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
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).
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.
pip install jupyterlab>=4.0.11
pip install jupyterlab>=3.6.7
pip install notebook>=7.0.7
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
CVE-2024-22421 Affected Jupyterlab Versions
3 component(s)| 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?
Which Jupyterlab versions are affected?
What version fixes CVE-2024-22421?
Is jupyterlab affected?
Is notebook affected?
What is the CVSS score of CVE-2024-22421?
What CWE is associated with CVE-2024-22421?
How can I check PyPI dependencies for CVE-2024-22421?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}