GitHub Advisoryadvisory · PyPI
GHSA-428g-f7cq-pgp5 Marshmallow has DoS in Schema.load(many)
MEDIUM
Official page ↗
- Aliases
- CVE-2025-68480
- Ecosystem
- PyPI
- Packages
- marshmallow
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Weaknesses
- CWE-405
- Reviewed
- 2025-12-22
Affected packages
• PyPI marshmallow: >= 3.0.0rc1, < 3.26.2 → fixed in 3.26.2
• PyPI marshmallow: >= 4.0.0, < 4.1.2 → fixed in 4.1.2
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
```py
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]
```
Related
Alias · CVE (1)
- CVE-2025-68480 Marshmallow is a lightweight library for converting complex objects to and from simple Python datatypes. vulnerability
Weakness · CWE (1)
- CWE-405 Asymmetric Resource Consumption (Amplification) weakness
References
- https://github.com/marshmallow-code/marshmallow/security/advisories/GHSA-428g-f7cq-pgp5 web
- https://nvd.nist.gov/vuln/detail/CVE-2025-68480 advisory
- https://github.com/marshmallow-code/marshmallow/commit/d24a0c9df061c4daa92f71cf85aca25b83eee508 web
- https://github.com/marshmallow-code/marshmallow package