CVE-2025-3777

LOW
Published Jul 7, 2025 Modified Aug 7, 2025 CWE-20

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 v3.1 Score

3.5
LOW
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N

Weakness Type (CWE)

CWE-20 Improper Input Validation

Affected Products

Vendor Product
huggingface transformers

References

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. It has a CVSS v3.1 base score of 3.5 (LOW).
How severe is CVE-2025-3777? +
CVE-2025-3777 has a CVSS v3.1 score of 3.5 out of 10, rated LOW. This is a low-severity vulnerability with limited impact.
What products are affected by CVE-2025-3777? +
CVE-2025-3777 affects products from huggingface, specifically: transformers. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-3777? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-3777 — free, no signup required.

Start Free Scan