Advisory

PYSEC-2026-1605

Also known as: CVE-2025-68480, GHSA-428g-f7cq-pgp5

Summary

Marshmallow has DoS in Schema.load(many)

Details

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]

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:46 UTC

Affected packages and fixes

marshmallow

PyPI · All systems

Affected

  • introduced 3.0.0rc1, fixed 3.26.2, introduced 4.0.0, fixed 4.1.2 (ecosystem)

Fixed versions

3.26.2, 4.1.2

Fix

  • Fixed version 3.26.2
    pip install --upgrade marshmallow==3.26.2
  • Fixed version 4.1.2
    pip install --upgrade marshmallow==4.1.2

Fix 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

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences