Skip to content
Heist/ feed
Back to feed
High

ModelScope through 1.40.0 Unsafe YAML Deserialization in Model Config Loading

Type: advisorySources: OSV

ModelScope uses PyYAML's unsafe yaml.Loader to parse model configuration files, allowing arbitrary code execution through Python object construction tags. Attackers can craft malicious model repositories with poisoned configuration files that execute code when loaded by users.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-84202
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 03:46 UTC · Revision 1

Source evidence

ModelScope through 1.40.0 Unsafe YAML Deserialization in Model Config Loading

core-osv · Original source

Published 1 Sept 2026, 15:18 UTC

ModelScope uses PyYAML's unsafe yaml.Loader to parse model configuration files, allowing arbitrary code execution through Python object construction tags. Attackers can craft malicious model repositories with poisoned configuration files that execute code when loaded by users.

osv:CVE-2026-84202
Complete source record
{
  "id": "5a7d6c2c13e7ae1b41cb27a172b3747d56479d785645a989dd1c0007c09b74a5",
  "url": "https://osv.dev/vulnerability/CVE-2026-84202",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ModelScope through 1.40.0 Unsafe YAML Deserialization in Model Config Loading",
    "summary": "ModelScope uses PyYAML's unsafe yaml.Loader to parse model configuration files, allowing arbitrary code execution through Python object construction tags. Attackers can craft malicious model repositories with poisoned configuration files that execute code when loaded by users.",
    "evidence": "osv:CVE-2026-84202",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-84202",
      "aliases": [
        "CVE-2026-84202"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/modelscope/modelscope",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "e7b24ee97f22580cc6bd084134e868f962d16870"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.40.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.40.0",
            "v1.7.2",
            "v0.4.0",
            "v0.3.1",
            "v0.3.0",
            "v0.1.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-84202.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.147167046Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84202.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-84202",
        "https://www.vulncheck.com/advisories/modelscope-through-1.40.0-unsafe-yaml-deserialization-in-model-config-loading",
        "https://github.com/modelscope/modelscope/issues/1660",
        "https://github.com/modelscope/modelscope",
        "https://pypi.org/project/modelscope/",
        "https://github.com/modelscope/modelscope/blob/v1.40.0/modelscope/models/audio/tts/voice.py",
        "https://github.com/modelscope/modelscope/blob/v1.40.0/modelscope/models/multi_modal/mplug/configuration_mplug.py"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-502"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84202.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-84202",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509946,
  "published_at": "2026-09-01T15:18:57.372+00:00"
}