Unsafe Dependency Resolution Affecting transformers package, versions [,5.5.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.55% (43rd 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-17675094
  • published29 Jun 2026
  • disclosed3 Jun 2026
  • creditUnknown

Introduced: 3 Jun 2026

CVE-2026-5241  (opens in a new tab)
CWE-829  (opens in a new tab)

How to fix?

Upgrade transformers to version 5.5.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 Unsafe Dependency Resolution in the model initialization process when the trust_remote_code parameter is overridden by untrusted configuration data. An attacker can execute arbitrary code by supplying a malicious model repository, which may result in credential theft, unauthorized access, or deployment of backdoors.

CVSS Base Scores

version 4.0
version 3.1