Use of Weak Hash Affecting ms-swift package, versions [0,4.4.2)


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.08% (1st 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 Learn

Learn about Use of Weak Hash vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MSSWIFT-17152951
  • published4 Jun 2026
  • disclosed4 Jun 2026
  • creditUnknown

Introduced: 4 Jun 2026

CVE-2026-10801  (opens in a new tab)
CWE-328  (opens in a new tab)

How to fix?

Upgrade ms-swift to version 4.4.2 or higher.

Overview

ms-swift is a Swift: Scalable lightWeight Infrastructure for Fine-Tuning

Affected versions of this package are vulnerable to Use of Weak Hash in the Template._save_pil_image() function in swift/template/base.py. An attacker can exploit a weakness in cache key integrity to tamper with the resolved image from a given hash. Different images with identical raw bytes and different dimensions may have the same hash, which can be used to cause the wrong image to be returned by a hash lookup.

CVSS Base Scores

version 4.0
version 3.1