CVE-2026-0599: Hugging Face Text Generation Inference Vulnerable to Uncontrolled Resource Consumption

text-generation Updated 03 Feb 2026

Summary

02/02/2026
Yes i
High
7.5

CVE-2026-0599: Hugging Face Text Generation Inference vulnerable to Uncontrolled Resource Consumption. Affects text-generation versions < 3.3.7. Fixed in 3.3.7. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Hugging Face's Text Generation Inference is a powerful tool designed for generating text based on input prompts. It leverages advanced machine learning models to provide users with high-quality text generation capabilities. However, version 3.3.6 of this package is susceptible to a serious vulnerability that allows unauthenticated remote attackers to exploit unbounded external image fetching during input validation in VLM mode, leading to potential resource exhaustion.

Vulnerability Detail

The vulnerability arises when the router scans inputs for Markdown image links and performs a blocking HTTP GET request. This process reads the entire response body into memory and clones it before decoding, which can lead to resource exhaustion, including network bandwidth saturation, memory inflation, and CPU overutilization. Even if the request is later rejected for exceeding token limits, the vulnerability can still be triggered. The default deployment configuration, which lacks memory usage limits and authentication, exacerbates the impact, potentially crashing the host machine.

How To Fix

Minimum fixed version

3.3.7

This is the first release that contains the fix.

pip install --upgrade "text-generation==3.3.7"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider implementing input validation to restrict the types of inputs that can be processed, or configure your deployment to include memory usage limits and authentication to mitigate the risk of resource exhaustion.

Conclusion

In summary, CVE-2026-0599 is a significant vulnerability in Hugging Face's Text Generation Inference that can lead to serious resource exhaustion issues. It is crucial to update to the patched version 3.3.7 to mitigate this risk. Additionally, using tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for text-generation →

Share this vulnerability

FAQ

CVE-2026-0599 is a vulnerability in Hugging Face's Text Generation Inference that allows unauthenticated remote attackers to exploit unbounded external image fetching, leading to resource exhaustion.

You can check if your application is affected by using Vulert's playground at Vulert Scanner, which monitors and alerts for open-source vulnerabilities in real-time.

The potential consequences include network bandwidth saturation, memory inflation, CPU overutilization, and even crashing the host machine due to resource exhaustion.

Yes, the vulnerability is resolved in version 3.3.7 of the text-generation package. It is recommended to update to this version or later.

If you cannot update the package immediately, consider implementing input validation and configuring your deployment with memory usage limits and authentication as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for text-generation.

How To Fix

Minimum fixed version

3.3.7

This is the first release that contains the fix.

pip install --upgrade "text-generation==3.3.7"

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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