CVE-2025-3777: Improper Input Validation in huggingface/transformers
Vulnerability summary
CVE-2025-3777 is a low (CVSS 3.5) Improper Input Validation vulnerability in huggingface huggingface/transformers. EPSS estimates a 0.41% chance of exploitation in the next 30 days, higher than 34.9% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 3.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 3Timeline
- 07-07-2025PublishedVulnerability first disclosed.
- 07-07-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · PypiEcosystem advisory · calculated3.5LowCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated3.5LowCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N
- NVDNIST3.5LowCVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.41%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
Increase +0.03 pp
From 0.38% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard7 products
- nemo< 2.3.2-r1
- py3.10-transformers-4.51All versions (No fix recorded)
- py3.11-transformers-4.51All versions (No fix recorded)
- py3.12-transformers-4.51All versions (No fix recorded)
- py3.13-transformers-4.51All versions (No fix recorded)
Huggingface2 products
- huggingface/transformers≥ unspecified, < 4.52.1
- transformers< 4.52.1
PyPI1 product
- transformers< 4.52.1
3 vendors · 10 products