Advisory

GHSA-9q2p-fj49-vpxj

Also known as: CVE-2018-17175, PYSEC-2018-67

Summary

In marshmallow library the schema "only" option treats an empty list as implying no "only" option

Details

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").

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-10-10 16:10 UTC
Modified
2024-09-24 20:22 UTC

Affected packages and fixes

marshmallow

PyPI · All systems

Affected

  • introduced 0, fixed 2.15.1 (ecosystem)

Fixed versions

2.15.1

Fix

  • Fixed version 2.15.1
    pip install --upgrade marshmallow==2.15.1

marshmallow

PyPI · All systems

Affected

  • introduced 3.0a0, fixed 3.0.0b9 (ecosystem)

Fixed versions

3.0.0b9

Fix

  • Fixed version 3.0.0b9
    pip install --upgrade marshmallow==3.0.0b9

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences