{"id":"CVE-2025-3777","published":"2025-07-07T09:55:38Z","modified":"2025-07-07T12:26:15Z","title":"Improper Input Validation in huggingface/transformers","vendor":"huggingface","product":"huggingface/transformers","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.5,"severity":"LOW","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00416,"percentile":0.36821,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://huntr.com/bounties/ccba0730-9248-4853-b7ff-5c20e6364f09","tags":[]},{"url":"https://github.com/huggingface/transformers/commit/4dda5f71b35fb70cf602187eef84bb17a50b9082","tags":[]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":7.36},{"name":"CVSS severity","points":2.45}]},"vendorSlug":"huggingface","affectedVersions":[{"vendor":"huggingface","product":"huggingface/transformers","versions":[">= unspecified, < 4.52.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-07T12:24:47.677205Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"transformers","vulnerableRanges":["<4.52.1"],"patched":["4.52.1"],"from":["GHSA-phhr-52qp-3mj4","PYSEC-2026-1986"],"provenance":"source"}],"summary":{"text":"The flaw is an improper input validation issue in the image_utils.py component of the huggingface/transformers library, where URL checks use a startswith() comparison that can be bypassed by injecting a username into the URL. An attacker who can get a user to open a crafted URL can make a link that appears to point to YouTube while resolving to a malicious domain, enabling phishing, malware distribution, or data exfiltration; this requires network access, low privileges, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:00Z"},"euvd":{"id":"EUVD-2025-20211","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-3262","published":"2025-07-07","fixed":"4.51.0","kev":false},{"cve":"CVE-2025-3263","published":"2025-07-07","fixed":"4.51.0","kev":false,"link":{"from":"CVE-2025-3263","to":"CVE-2025-3777","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:transformers","fromFixed":"4.51.0","toFixed":"4.52.1","daysApart":0}]}},{"cve":"CVE-2025-3264","published":"2025-07-07","fixed":"4.51.0","kev":false},{"cve":"CVE-2025-3777","published":"2025-07-07","fixed":"4.52.1","kev":false},{"cve":"CVE-2025-3933","published":"2025-07-11","fixed":"4.52.1","kev":false},{"cve":"CVE-2025-5197","published":"2025-08-06","fixed":"4.53.0","kev":false},{"cve":"CVE-2025-6051","published":"2025-09-14","fixed":"4.53.0","kev":false}],"package":"PyPI:transformers"}}