Affected versions
Version ranges need review.
PyPImarshmallow
- Affected versions
- >= 3.0.0rc1, < 3.26.2
- Fixed version
- 3.26.2
PyPImarshmallow
- Affected versions
- >= 4.0.0, < 4.1.2
- Fixed version
- 4.1.2
PyPImarshmallow
- 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
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
- https://github.com/advisories/GHSA-428g-f7cq-pgp5
- https://github.com/marshmallow-code/marshmallow
- https://github.com/marshmallow-code/marshmallow/commit/d24a0c9df061c4daa92f71cf85aca25b83eee508
- https://github.com/marshmallow-code/marshmallow/security/advisories/GHSA-428g-f7cq-pgp5
- https://nvd.nist.gov/vuln/detail/CVE-2025-68480
- https://pypi.org/project/marshmallow

