Arbitrary Code Injection Affecting label-studio package, versions <1.23.1-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.21% (10th 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-MINIMOSLATEST-LABELSTUDIO-20147152
  • published26 Sept 2026
  • disclosed28 Jul 2026

Introduced: 28 Jul 2026

CVE-2026-54654  (opens in a new tab)
CWE-94  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade Minimos:latest label-studio to version 1.23.1-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream label-studio package and not the label-studio package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

datamodel-code-generator generates Python data models from schema definitions. From 0.14.1 until 0.60.2, the --extra-template-data comment field is rendered into Python comments in src/datamodel_code_generator/model/template/TypeAliasAnnotation.jinja2, src/datamodel_code_generator/model/template/TypedDict.jinja2, src/datamodel_code_generator/model/template/dataclass.jinja2, src/datamodel_code_generator/model/template/msgspec.Struct.jinja2, src/datamodel_code_generator/model/template/pydantic/BaseModel.jinja2, and src/datamodel_code_generator/model/template/pydantic_v2/BaseModel.jinja2 without neutralizing carriage returns in Python # comments, allowing an attacker-controlled comment value to inject Python code into generated models that runs when imported. This issue is fixed in version 0.60.2.