Skip to main content
← All vulnerabilities
CVE-2025-3777GHSA-PHHR-52QP-3MJ4PYSEC-2026-1986

Improper Input Validation in huggingface/transformers

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.52.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • huggingface huggingface/transformers

    fixed in 4.52.1

  • transformersPyPI

    fixed in 4.52.1

References 2

huntr.com

GitHub · huggingface/transformers