Information Exposure Affecting fastapi-proxy-lib package, versions [,0.1.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-FASTAPIPROXYLIB-6097154
  • published3 Dec 2023
  • disclosed1 Dec 2023
  • creditUnknown

Introduced: 1 Dec 2023

CVE NOT AVAILABLE CWE-200  (opens in a new tab)

How to fix?

Upgrade fastapi-proxy-lib to version 0.1.0 or higher.

Overview

fastapi-proxy-lib is a HTTP/WebSocket proxy for starlette/FastAPI.

Affected versions of this package are vulnerable to Information Exposure due to the shared usage of httpx.AsyncClient in processing requests from different user clients. An attacker can exploit this to leak cookies among all user clients sharing the same httpx.AsyncClient by sending a set-cookie response header. This is only exploitable if the ForwardHttpProxy is used, or if ReverseHttpProxy or ReverseWebSocketProxy are used for servers that may potentially send a set-cookie response.

Workaround

This vulnerability can be mitigated by not using ForwardHttpProxy at all, and not using ReverseHttpProxy or ReverseWebSocketProxy for any servers that may potentially send a set-cookie response.

References

CVSS Scores

version 3.1