marshmallow
Affected
- introduced
3.0.0rc1, fixed3.26.2(ecosystem)
Fixed versions
3.26.2
Fix
- Fixed version
3.26.2pip install --upgrade marshmallow==3.26.2
Advisory
Also known as: CVE-2025-68480, PYSEC-2026-1605
Marshmallow has DoS in Schema.load(many)
Impact
Schema.load(data, many=True) is vulnerable to denial of service attacks. A moderately sized request can consume a disproportionate amount of CPU time.
Patches
4.1.2, 3.26.2
Workarounds
# Fail fast
def load_many(schema, data, **kwargs):
if not isinstance(data, list):
raise ValidationError(['Invalid input type.'])
return [schema.load(item, **kwargs) for item in data]Medium Basis: The source's own band: MODERATE
3.0.0rc1, fixed 3.26.2 (ecosystem)3.26.2
3.26.2pip install --upgrade marshmallow==3.26.24.0.0, fixed 4.1.2 (ecosystem)4.1.2
4.1.2pip install --upgrade marshmallow==4.1.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0