Improper input validation in Huggingface Huggingface/transformers
CVE-2025-3777
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
EPSS: 0.003 (26.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 3.5 (Low). Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N.
Affected products
- Huggingface Huggingface/transformers — versions unspecified
- Huggingface Transformers
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security@huntr.dev (Exploit, Third Party Advisory)
- security@huntr.dev (Patch)
Frequently asked questions
- What is CVE-2025-3777?
- CVE-2025-3777 is a low-severity vulnerability in Huggingface Huggingface/transformers, classified under Improper Input Validation. CVSS score: 3.5/10. Published 2025-07-07.
- How severe is CVE-2025-3777?
- Low severity. CVSS v3 base score is 3.5 out of 10.
- Is CVE-2025-3777 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.