All reports
Medium

Marshmallow has DoS in Schema.load(many)

Affected versions

Version ranges need review.

Affected versions
>= 3.0.0rc1, < 3.26.2
Fixed version
3.26.2
Affected versions
>= 4.0.0, < 4.1.2
Fixed version
4.1.2
Affected versions
>=3.0.0rc1 <3.26.2 || >=4.0.0 <4.1.2
Fixed version
3.26.2 · 4.1.2
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-68480

Probability of exploitation in the next 30 days: 0.30%

FIRST EPSS · 2026-11-19

Description

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]

Links