SecurityContext

CVE-2025-3777: Hugging Face Transformers - Improper Input Validation

  • Cve: CVE-2025-3777
  • Name: Hugging Face Transformers - Improper Input Validation
  • 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.
  • Impact: Attackers can craft malicious URLs that bypass validation, potentially leading to phishing, malware distribution, or data exfiltration.
  • Remediation: Update to version 4.52.1 or later.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: low
  • Cvss score: 3.5
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N
  • Epss score: 0.00416
  • Epss percentile: 0.36705
  • Assignee: [email protected]
  • Published at: 2025-07-07T10:15:28Z
  • Age in days: 505
  • Modified at: 2026-06-17T09:20:39Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-3777
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-20Improper Input Validation
NVD-CWE-noinfo—

Public exploits

UrlSourceAdded date
https://huntr.com/bounties/ccba0730-9248-4853-b7ff-5c20e6364f09nvd2025-07-07

References

UrlSourceTags
https://github.com/huggingface/transformers/commit/4dda5f71b35fb70cf602187eef84bb17a50b9082nvdPatch
https://huntr.com/bounties/ccba0730-9248-4853-b7ff-5c20e6364f09nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
huggingface:transformers< 4.52.1nonvd/v1/products/huggingface/transformers

Projects

RepositoryLink kindsIndexedUrl
huggingface/transformerscommit, packageyes/v1/repositories/huggingface/transformers

Index

  • Repositories: 2172
  • Repositories high signal: 1193
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-07-07
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts