# PYSEC-2026-4076: BerriAI litellm: SSO Login Does Not Invalidate Previous UI Session Tokens

- Database: PyPA
- Published: 2026-10-01
- Modified: 2026-10-01

## Tracked as

- [CVE-2026-12796](https://cve.now/CVE-2026-12796.md): BerriAI litellm SSO Authentication Flow ui\_sso.py get\_redirect\_response\_from\_openid session expiration

## Also published as

- [GHSA-W2MH-QQ9Q-453X](https://cve.now/GHSA-W2MH-QQ9Q-453X.md) (GitHub)

## Affected versions

- litellm (PyPI): through 1.82.2

## Description

A vulnerability was identified in BerriAI litellm up to 1.82.2. This impacts the function get_redirect_response_from_openid of the file litellm/proxy/management_endpoints/ui_sso.py of the component SSO Authentication Flow. The manipulation leads to session expiration. The attack is possible to be carried out remotely. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure.

## References

- https://nvd.nist.gov/vuln/detail/CVE-2026-12796
- https://gist.github.com/YLChen-007/5fa8af12e1b183674d7ca96d852fb697
- https://github.com/BerriAI/litellm
- https://vuldb.com/cve/CVE-2026-12796
- https://vuldb.com/submit/811287
- https://vuldb.com/vuln/372558
- https://vuldb.com/vuln/372558/cti
- https://pypi.org/project/litellm
- https://github.com/advisories/GHSA-w2mh-qq9q-453x

Page: https://cve.now/PYSEC-2026-4076

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
