GHSA-fjq3-5pxw-4wj4

    Dashboard / Vulnerabilities / GHSA-fjq3-5pxw-4wj4

    GHSA-fjq3-5pxw-4wj4

    Published: 7 Apr 2021Last Modified: 19 Nov 2024

    Summary: Cross-Site Request Forgery in Webargs

    Details: flaskparser.py in Webargs 5.x through 5.5.2 doesn't check that the Content-Type header is application/json when receiving JSON input. If the request body is valid JSON, it will accept it even if the content type is application/x-www-form-urlencoded. This allows for JSON POST requests to be made across domains, leading to CSRF.

    Affected packages

    Package

    Name: webargs

    Purl: pkg:pypi/webargs

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 5.0.0
    Fixed -5.5.3

    Affected versions

    5.0.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-fjq3-5pxw-4wj4 | CVE-DB