NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2026-10801: ms-swift: Image Cache Hash Collision via Missing Dimension Metadata

lowCVSS 4.0 1.1 · 3.1 3.6GHSA-prfw-69r3-wqxf

A security vulnerability has been detected in modelscope ms-swift up to 4.2.0. This affects the function Template.savepilimage of the file swift/template/base.py of the component PIL Image Cache Key Handler. The manipulation leads to use of weak hash. An attack has to be approached locally. A high degree of complexity is needed for the attack. It is indicated that the exploitability is difficult.

Published Jun 4, 2026 · Updated Jul 14, 2026

Affected packages

ms-swift

Ecosystem
PyPI
Affected
<= 4.2.0
Fixed in
No patched version yet
Check
pip show ms-swift

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

A security vulnerability has been detected in modelscope ms-swift up to 4.2.0. This affects the function Template._save_pil_image of the file swift/template/base.py of the component PIL Image Cache Key Handler. The manipulation leads to use of weak hash. An attack has to be approached locally. A high degree of complexity is needed for the attack. It is indicated that the exploitability is difficult. The exploit has been disclosed publicly and may be used. The pull request to fix this issue awaits acceptance.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries