Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') Affecting modelscope package, versions [1.11.0,1.40.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.48% (44th 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-MODELSCOPE-23049590
  • published29 Nov 2026
  • disclosed17 Nov 2026
  • creditMichael Holmquist

Introduced: 17 Nov 2026

NewCVE-2026-130839  (opens in a new tab)
CWE-470  (opens in a new tab)

How to fix?

Upgrade modelscope to version 1.40.1 or higher.

Overview

modelscope is a ModelScope: bring the notion of Model-as-a-Service to life.

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') via the instantiate_from_config function in the image-to-3D SyncDreamer pipeline. A remote attacker can execute arbitrary code on a victim’s system by publishing a model with a crafted syncdreamer.yaml whose target selects an attacker-controlled class and whose parameters control its instantiation; the code runs when the victim loads the model.

CVSS Base Scores

version 4.0
version 3.1