GHSA-fjq3-5pxw-4wj4

Suggest an improvement
Source
https://github.com/advisories/GHSA-fjq3-5pxw-4wj4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-fjq3-5pxw-4wj4/GHSA-fjq3-5pxw-4wj4.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-fjq3-5pxw-4wj4
Aliases
Published
2021-04-07T21:06:30Z
Modified
2024-11-19T15:49:31.310546Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
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.

Database specific
{
    "severity": "HIGH",
    "nvd_published_at": "2020-01-29T15:15:00Z",
    "github_reviewed": true,
    "github_reviewed_at": "2021-03-29T22:19:18Z",
    "cwe_ids": [
        "CWE-352"
    ]
}
References

Affected packages

PyPI / webargs

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.0.0
Fixed
5.5.3

Affected versions

5.*

5.0.0
5.1.0
5.1.1
5.1.1.post0
5.1.2
5.1.3
5.2.0
5.3.0
5.3.1
5.3.2
5.4.0
5.5.0
5.5.1
5.5.2

PyPI / webargs

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.0.0b1
Fixed
6.0.0b4

Affected versions

6.*

6.0.0b1
6.0.0b2
6.0.0b3