CVE-2026-25632 EPyT-Flow has unsafe JSON deserialization (__type__)

Critical 10.0 Published Updated

Attackers can execute arbitrary OS commands by sending malicious JSON payloads to the EPyT-Flow REST API or loading crafted files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-25632?

CVE-2026-25632 is a critical unsafe deserialization vulnerability in WaterFutures EPyT-Flow, published on 6 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

EPyT-Flow is a Python package designed for the easy generation of hydraulic and water quality scenario data of water distribution networks. Prior to 0.16.1, EPyT-Flow’s REST API parses attacker-controlled JSON request bodies using a custom deserializer (my_load_from_json) that supports a type field. When type is present, the deserializer dynamically imports an attacker-specified module/class and instantiates it with attacker-supplied arguments. This allows invoking dangerous classes such as subprocess.Popen, which can lead to OS command execution during JSON parsing. This also affects the loading of JSON files. This vulnerability is fixed in 0.16.1.

Weakness: CWE-502

Which versions are affected by CVE-2026-25632?

3 open source packages ship an affected version, including epyt-flow. It affects 1 product.

PackageAffectedFixed in
epyt-flow PyPIAll versions0.16.1
epyt-flow PyPIAll versions0.16.1
epyt-flow PyPIAll versions0.16.1

Products include Waterfutures Epyt-Flow.

How do I fix CVE-2026-25632?

Upgrade epyt-flow to 0.16.1 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2026-25632 being exploited?

There is no known exploitation of CVE-2026-25632 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-74vm-8frp-7w68, PYSEC-2026-330.

Is CVE-2026-25632 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free