CVE-2025-3777

Improper Input Validation in huggingface/transformers

Published Jul 7, 2025 CVSS 3.0 · 3.5 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-20211 Transformers's Improper Input Validation vulnerability can be exploited through username injection
Github GHSA Github GHSA GHSA-phhr-52qp-3mj4 Transformers's Improper Input Validation vulnerability can be exploited through username injection
History
Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics epss

{'score': 0.00059}

epss

{'score': 0.0006}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Improper Input Validation in huggingface/transformers
Weaknesses CWE-20
References
Metrics cvssV3_0

{'score': 3.5, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntr_ai
Published
Updated
Jul 7, 2025, 12:26 PM
Reserved
Apr 17, 2025, 5:35 PM
Status
Analyzed
Published
Jul 7, 2025, 10:15 AM
Modified
Jun 17, 2026, 9:20 AM
Severity
Low
Public date
Jul 7, 2025, 9:55 AM