litellm: User passwords exposed in API responses, weak hashing lets attackers take over accounts

HighSE Fix-First Score 43/100GHSA-69x8-hrgq-fjj8SE-AIV-00973Missing or broken access controlModel serving and inferenceMade public 8 Apr 2026

Download as PDF

What this means

An attacker who can log in to your litellm system can read other users' password hashes from the API, then use those hashes to log in as those users without knowing their real passwords. This gives the attacker full control of any account, including administrator accounts. All user data, API keys, and system settings become compromised.

SecurityElites Manager Brief: the decision in one minute

litellm stores passwords using weak hashing and returns them in API responses. Any logged-in user can steal another user's password hash and log in as them. You must upgrade to 1.83.0 immediately and reset all passwords.

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform engineering or DevOps team (owns litellm deployment and user management).
Likely effortAbout 30 minutes to upgrade and restart the service, plus time to reset all user passwords. If you have many users, password reset distribution could take longer.

Questions to ask your team or supplier

  • Do we have any evidence that user accounts logged in and queried other users' password hashes before we upgraded? If so, which accounts may be compromised?
  • Have we reset all user passwords and forced new scrypt-hashed passwords? Can we confirm this was done and when?
  • Are there any API keys or integration credentials that may have been exposed through compromised user accounts?

Message you can forward to the owning team

Security notice: litellm: User passwords exposed in API responses, weak hashing lets attackers take over accounts (GHSA-69x8-hrgq-fjj8)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to litellm 1.83.0 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/ghsa-69x8-hrgq-fjj8-litellm-user-passwords-exposed-in-api-responses-weak-hashing/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00973

What is at stake in your AI setup

  • API keys for external AI providers: an attacker with another user's account can steal these keys and use them, running up costs or poisoning AI responses
  • Prompts and chat history: an attacker can read private prompts or conversation history of other users to understand your AI use cases or extract sensitive information
  • Tools and systems the AI agent is connected to: an attacker with admin access can redirect the agent to malicious systems or exfiltrate data the agent normally accesses

Map where your company uses AI

Who is exposed

  • Teams running litellm as a shared service with multiple users (highest risk)
  • Teams where litellm administrators have privileged accounts
  • Teams where litellm can reach production AI systems or keys
  • Teams where any user has logged in to litellm since deployment
  • Teams running only single-user instances are at lower risk

Upgrades you need

SoftwareAffected versionsMove to
litellm
PyPI
Every version before 1.83.01.83.0 or later

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downNone

Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Kind of coding mistake

  • CWE-200: information is exposed to the wrong party
  • CWE-327
  • CWE-916

If you cannot upgrade today

  • Until you can upgrade, restrict who can call /user/info, /user/update, and /spend/users endpoints by adding firewall rules or reverse-proxy authentication rules so that only trusted administrators can reach them.
  • Rotate any API keys or secrets that could be accessed by any user account that has logged in before the upgrade.

Signs it may already have been used against you

  • Review authentication logs (litellm access logs) for the period before upgrade: look for one user account calling /user/info, /user/update, or /spend/users multiple times with different user IDs, especially administrator-level queries.
  • Check litellm API response logs: search for responses that contain the field `password_hash` or `password` in the JSON body before the upgrade date.
  • Look at login logs after the weak password period: if a single user logs in as multiple different accounts in a short time, that is a sign of stolen credentials.
  • If possible, check application logs or database audit trails to see which users queried other users' information.

Log searches to start from

Single user querying many other users' data (field names must be adapted to your logs)Splunk

sourcetype=litellm (endpoint=/user/info OR endpoint=/user/update OR endpoint=/spend/users) | stats dc(requested_user_id) as unique_users by authenticated_user | where unique_users > 5

API responses containing password_hash field (field names must be adapted)Elastic

source: litellm AND response_body: *password_hash* AND timestamp >= [date_deployed] AND timestamp < [date_upgraded]

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Find litellm installationsList all servers and containers running litellm. Check pip packages on each machine that hosts litellm with `pip show litellm` or check your Python environment. Document the version number and the host.
  2. Check if you are affectedIf your litellm version is earlier than 1.83.0, you are affected. Run `python -c "import litellm; print(litellm.__version__)"` on each host running litellm.
  3. Assess what users have accessed litellmReview litellm logs and authentication records to identify all user accounts that have logged in. Any user who logged in before the upgrade could have stolen other users' password hashes.
  4. Upgrade to 1.83.0On each host, upgrade litellm to version 1.83.0 or later using your package manager. For pip: `pip install --upgrade litellm==1.83.0`. Restart the litellm service after upgrading.
  5. Verify the upgradeAfter restart, check that the version is now 1.83.0 or later: `python -c "import litellm; print(litellm.__version__)"`. Confirm that litellm starts without errors in the logs.
  6. Reset all user passwordsForce all users to reset their passwords on next login. This invalidates any stolen password hashes and forces re-hashing with the new stronger algorithm (scrypt). Document this as a mandatory security action.
  7. Review access logsCheck litellm audit logs for calls to /user/info, /user/update, and /spend/users between your oldest user creation and the upgrade date. Look for one user querying many other users' accounts. If found, those accounts may have been compromised.
  8. Verify the fix is workingAfter the password reset, log in as a test user and confirm that password hashes are no longer returned in responses from /user/info, /user/update, or /spend/users endpoints. Use curl or a API client to inspect the JSON response body.

How to confirm it is fixed: After upgrade to 1.83.0 and password reset, confirm that password hashes no longer appear in /user/info, /user/update, or /spend/users API responses, and verify that new logins complete successfully.

SecurityElites Quick Fixes: copy and paste

Upgrade litellm with pipupgrade

pip install --upgrade "litellm>=1.83.0"
pip show litellm | grep Version

Pin it in requirements.txtupgrade

litellm>=1.83.0

Check litellm versionfor this issue

python -c "import litellm; print(f'litellm version: {litellm.__version__}')"

Verify password hash is not in /user/info responsefor this issue

curl -H "Authorization: Bearer YOUR_TOKEN" http://localhost:8000/user/info | jq '.password_hash'

Require sign-in with nginx in front of the servicegeneral hardening

location / {
    auth_basic "Restricted";
    auth_basic_user_file /etc/nginx/.htpasswd;
    proxy_pass http://127.0.0.1:8080;
}

Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.

Let your AI coding assistant do the upgrade

Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.

Instruction for your coding assistant

You are helping me fix a security vulnerability (GHSA-69x8-hrgq-fjj8) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n   - litellm (PyPI): must be 1.83.0 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.

SecurityElites Incident Drill: could your team handle this?

Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.

What is the attack chain in this vulnerability?A good answer: A logged-in user queries the /user/info API, reads another user's SHA-256 password hash, and sends that hash to the /v2/login endpoint which accepts it as a valid password, granting login as the target user.
Why are rainbow tables a risk in this case?A good answer: Passwords are stored as unsalted SHA-256 hashes, so attackers can precompute hashes of common passwords offline and compare them to stolen hashes to crack them without trial-and-error.
What does the fix in 1.83.0 do?A good answer: It switches to scrypt with a random salt, strips password hashes from all API responses, and re-hashes old SHA-256 hashes transparently on next login.
What action must follow the upgrade?A good answer: All user passwords must be reset to force re-hashing with scrypt and invalidate any stolen SHA-256 hashes.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## litellm: User passwords exposed in API responses, weak hashing lets attackers take over accounts (GHSA-69x8-hrgq-fjj8)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-00973 https://securityelites.com/ai-vulnerabilities/ghsa-69x8-hrgq-fjj8-litellm-user-passwords-exposed-in-api-responses-weak-hashing/

### Why this matters
An attacker who can log in to your litellm system can read other users' password hashes from the API, then use those hashes to log in as those users without knowing their real passwords. This gives the attacker full control of any account, including administrator accounts. All user data, API keys, and system settings become compromised.

### What to do
1. Find litellm installations
2. Check if you are affected
3. Assess what users have accessed litellm
4. Upgrade to 1.83.0
5. Verify the upgrade
6. Reset all user passwords
7. Review access logs
8. Verify the fix is working

Full steps: https://securityelites.com/ai-vulnerabilities/ghsa-69x8-hrgq-fjj8-litellm-user-passwords-exposed-in-api-responses-weak-hashing/

### Done when
- [ ] litellm is at 1.83.0 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] After upgrade to 1.83.0 and password reset, confirm that password hashes no longer appear in /user/info, /user/update, or /spend/users API responses, and verify that new logins complete successfully.
- [ ] Logs were checked for signs of earlier use

SecurityElites Fix Tracker

Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.

Sign in to track this fix

Change history

  • 8 Apr 2026: Made public
  • 1 Dec 2026: Published

Official record

### ImpactThree issues combine into a full authentication bypass chain:1. Weak hashing: User passwords are stored as unsalted SHA-256 hashes, making them vulnerable to rainbow table attacks and trivially identifying users with identical passwords. 2. Hash exposure: Multiple API endpoints (/user/info, /user/update, /spend/users) return the password hash field in responses to any authenticated user regardless of role. Plaintext passwords could also potentially be exposed in certain scenarios. 4. Pass-the-hash: The /v2/login endpoint accepts the raw SHA-256 hash as a valid password without re-hashing, allowing direct login with a stolenAn already authenticated user can retrieve another user's password hash from the API and use it to log in as that user. This enables full privilege escalation in three HTTP requests.### PatchesFixed in v1.83.0. Passwords are now hashed with scrypt (random 16-byte salt, n=16384, r=8, p=1). Password hashes are stripped from all API responses. Existing SHA-256 hashes are transparently migrated on next login.

Weakness type: CWE-200, CWE-327, CWE-916

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/GHSA-69x8-hrgq-fjj8

For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker

The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 1 Dec 2026. Read the vendor advisory before changing a production system.