{"cve":"CVE-2025-3777","nvd":{"published":"2025-07-07T10:15:28.297","modified":"2026-06-17T09:20:39.200","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N","score":3.5},"cwes":["CWE-20"],"references":["https://github.com/huggingface/transformers/commit/4dda5f71b35fb70cf602187eef84bb17a50b9082","https://huntr.com/bounties/ccba0730-9248-4853-b7ff-5c20e6364f09"],"products":["huggingface:transformers"],"source":"nvd","synced_at":"2026-10-19T22:04:28.436527499+00:00"},"epss":{"cve":"CVE-2025-3777","score":0.00406,"percentile":0.34924,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-phhr-52qp-3mj4","url":"https://osv.dev/vulnerability/GHSA-phhr-52qp-3mj4","summary":"Transformers's Improper Input Validation vulnerability can be exploited through username injection","modified":"2026-09-10T03:50:26.198077196Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":["<4.52.1"],"fixed":["4.52.1"]}]},{"id":"PYSEC-2026-1986","url":"https://osv.dev/vulnerability/PYSEC-2026-1986","summary":"Transformers's Improper Input Validation vulnerability can be exploited through username injection","modified":"2026-07-07T17:48:14.438962028Z","packages":[{"ecosystem":"PyPI","name":"transformers","purl":"pkg:pypi/transformers","ranges":["<4.52.1"],"fixed":["4.52.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}