Improper Validation of Syntactic Correctness of Input Affecting transformers package, versions [0,4.52.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.06% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-TRANSFORMERS-10658536
  • published8 Jul 2025
  • disclosed7 Jul 2025
  • creditYunus AYDIN

Introduced: 7 Jul 2025

NewCVE-2025-3777  (opens in a new tab)
CWE-1286  (opens in a new tab)

How to fix?

Upgrade transformers to version 4.52.0 or higher.

Overview

transformers is a State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Affected versions of this package are vulnerable to Improper Validation of Syntactic Correctness of Input via improper handling of user-supplied URLs by using the startswith() method in image_utils.py. An attacker can cause an application to display a seemingly legitimate YouTube link that actually redirects users to a malicious domain by supplying crafted input.

CVSS Base Scores

version 4.0
version 3.1