CVE-2022-21697 SSRF vulnerability (requires authentication)

Medium 6.3 Published Updated

Authenticated users can bypass host restrictions to perform server-side request forgery in Jupyter Server Proxy.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-21697?

CVE-2022-21697 is a medium-severity server-side request forgery vulnerability in jupyterhub jupyter-server-proxy, published on 25 Jan 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Jupyter Server Proxy is a Jupyter notebook server extension to proxy web services. Versions of Jupyter Server Proxy prior to 3.2.1 are vulnerable to Server-Side Request Forgery (SSRF). Any user deploying Jupyter Server or Notebook with jupyter-proxy-server extension enabled is affected. A lack of input validation allows authenticated clients to proxy requests to other hosts, bypassing the `allowed_hosts` check. Because authentication is required, which already grants permissions to make the same requests via kernel or terminal execution, this is considered low to moderate severity. Users may upgrade to version 3.2.1 to receive a patch or, as a workaround, install the patch manually.

Weakness: CWE-918

Which versions are affected by CVE-2022-21697?

3 open source packages ship an affected version, including jupyter-server-proxy. It affects 1 product.

PackageAffectedFixed in
jupyter-server-proxy PyPIAll versions3.2.1
jupyter-server-proxy PyPIAll versions3.2.1
jupyter-server-proxy PyPIAll versions3.2.1

Products include Jupyter Jupyter Server Proxy.

How do I fix CVE-2022-21697?

Upgrade jupyter-server-proxy to 3.2.1 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2022-21697 being exploited?

There is no known exploitation of CVE-2022-21697 in the wild and no public exploit code.

Sources

Also known as GHSA-gcv9-6737-pjqw, PYSEC-2022-16.

Is CVE-2022-21697 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free