CVE-2025-3777

CVE-2025-3777 is a low-severity vulnerability in Huggingface Transformers with a CVSS 3.x base score of 3.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-20.

Key facts

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.

Frequently asked questions

What is 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.
How severe is CVE-2025-3777?
CVE-2025-3777 has a CVSS 3.x base score of 3.5, rated low severity. It is exploitable over network with low attack complexity, requires low privileges and user interaction. Impact on confidentiality is low, integrity none, and availability none.
Is CVE-2025-3777 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (25th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2025-3777?
CVE-2025-3777 affects Huggingface Transformers. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2025-3777?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2025-3777 have an EU (EUVD) identifier?
Yes. CVE-2025-3777 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-20211.
When was CVE-2025-3777 published?
CVE-2025-3777 was published on 2025-07-07 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Huggingface Transformers

All CVEs affecting Huggingface Transformers →

Other CWE-20 (Improper Input Validation) vulnerabilities

Browse all CWE-20 (Improper Input Validation) vulnerabilities →