What’s Vulnerable › Vulnerabilities
CVE-2018-17175
- Severity: medium (CVSS 5.3 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2018-09-18 · updated 2026-06-17
Description
In the marshmallow library before 2.15.1 and 3.x before 3.0.0b9 for Python, the schema "only" option treats an empty list as implying no "only" option, which allows a request that was intended to expose no fields to instead expose all fields (if the schema is being filtered dynamically using the "only" option, and there is a user role that produces an empty value for "only").
Affected products
- Marshmallow Project Marshmallow: before 2.15.1; from 3.0 before 3.0.0b9 — fixed in 2.15.1, 3.0.0b9
How to fix
Upgrade to a fixed version: Marshmallow Project Marshmallow 2.15.1, 3.0.0b9. Check the vendor advisory for mitigations.
References
- https://github.com/marshmallow-code/marshmallow/issues/772
- https://github.com/marshmallow-code/marshmallow/pull/777
- https://github.com/marshmallow-code/marshmallow/pull/782
- https://github.com/marshmallow-code/marshmallow/issues/772
- https://github.com/marshmallow-code/marshmallow/pull/777
- https://github.com/marshmallow-code/marshmallow/pull/782
Get alerted when CVE-2018-17175 or the next vulnerability affects your stack