CVE-2024-7959: Open-WebUI SSRF Vulnerability in open-webui Package

open-webui Updated 02 Oct 2025

Summary

20/03/2025
No i
High
7.7

CVE-2024-7959: Open WebUI has SSRF in /openai/models. Affects open-webui versions < 0.3.8. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Open-WebUI is a web-based user interface designed to interact with OpenAI models, providing users with a streamlined way to access and utilize AI functionalities. The package is built on Python and is available through the PyPI ecosystem. It allows developers to integrate AI capabilities into their applications easily. However, a critical vulnerability has been identified in version 0.3.8, which exposes the application to Server-Side Request Forgery (SSRF) attacks.

Vulnerability Detail

The vulnerability exists in the '/openai/models' endpoint of the open-webui package, where an attacker can manipulate the OpenAI URL parameter without any validation. This flaw allows the attacker to redirect requests to arbitrary URLs, potentially accessing internal services and sensitive data. The implications of this vulnerability are severe, as it could lead to unauthorized access to internal systems, data leakage, and even command execution if instance secrets are exposed.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary measure, you can restrict access to the '/openai/models' endpoint by implementing network-level controls or by using a web application firewall (WAF) to filter requests. Additionally, consider validating and sanitizing the input parameters to prevent unauthorized URL manipulation.

Conclusion

The SSRF vulnerability in the open-webui package poses significant risks to applications utilizing this package. It is crucial for developers to update to the latest version and implement necessary security measures to protect their systems from potential exploitation.

See every vulnerability recorded for open-webui →

Share this vulnerability

FAQ

Server-Side Request Forgery (SSRF) is a vulnerability that allows an attacker to send crafted requests from a vulnerable server to internal or external resources, potentially exposing sensitive information.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring any signup.

The risks include unauthorized access to internal services, data leakage, and potential command execution, which could compromise the security of your application and its data.

Yes, a patch is available. Update the open-webui package to a version higher than 0.3.8 to mitigate the SSRF vulnerability.

The CVSS score for this vulnerability is 7.7, indicating a high severity level that requires immediate attention.

Related vulnerabilities

Recent vulnerabilities recorded for open-webui.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback