Transformers's Improper Input Validation vulnerability can be exploited through username injection
CVE-2025-3777 · GHSA-phhr-52qp-3mj4 · published 2025-07-07 · updated 2025-07-08
- Severity
- Low
- CVSS score
- 3.5
- Chance of exploitation (EPSS)
- 0.42%
- Fixed in
- 4.52.1
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
Hugging Face Transformers versions up to 4.49.0 are affected by an improper input validation vulnerability in the image_utils.py file. The vulnerability arises from insecure URL validation using the startswith() method, which can be bypassed through URL username injection. This allows attackers to craft URLs that appear to be from YouTube but resolve to malicious domains, potentially leading to phishing attacks, malware distribution, or data exfiltration. The issue is fixed in version 4.52.1.
Upgrade transformers to 4.52.1 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| transformers | PyPI | < 4.52.1 | 4.52.1 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- Criticaltransformers has a Deserialization of Untrusted Data vulnerabilitytransformers
- HighHugging Face Transformers downloads custom generation code before trust consenttransformers
- HighTransformers save_pretrained path traversal allows arbitrary file writes through chat template namestransformers
- Highhuggingface/transformers: Arbitrary Code Execution During Model Initialization in the LightGlue Model Loading Pathtransformers
- HighHuggingFace transformers vulnerable to remote code executiontransformers
- HighDeserialization of Untrusted Data in Hugging Face Transformerstransformers
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.