Vulnerabilities in pkg:pypi/webargs
PACKAGECVE-2019-9710 is a HIGH (CVSS 8.1) webargs mishandles concurrent json parsing vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Webargs libraries in the PyPI ecosystem. The issue involves webargs mishandles concurrent json parsing. Remediation is available by upgrading affected packages to version 5.1.3.
pkg:pypi/webargs
Vulnerability advisories affecting package pkg:pypi/webargs. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8554-jxcw-454q | CVE-2019-9710 | HIGH | Webargs mishandles concurrent JSON parsing |
| GHSA-fjq3-5pxw-4wj4 | CVE-2020-7965 | HIGH | Cross-Site Request Forgery in Webargs |
CVE-2019-9710 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-9710
To remediate this vulnerability, upgrade all affected Webargs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install webargs>=5.1.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show webargs
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2019-9710, inspect your installed packages using pip:
pip show webargs
Analyze the terminal output to locate any version of Webargs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.1.3), your application is affected.
Note: The pip show webargs command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Webargs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-9710 Affected Webargs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
webargs
|
PyPI |
< 5.1.3
|
5.1.3
|
References
Frequently Asked Questions
What is CVE-2019-9710?
Which Webargs versions are affected?
What version fixes CVE-2019-9710?
Is webargs affected?
What is the CVSS score of CVE-2019-9710?
What CWE is associated with CVE-2019-9710?
How can I check PyPI dependencies for CVE-2019-9710?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8554-jxcw-454q",
"modified" : "2025-08-04T21:03:04Z",
"published" : "2019-03-12T15:16:12Z",
"aliases" : [ "CVE-2019-9710" ],
"summary" : "Webargs mishandles concurrent JSON parsing",
"details" : "An issue was discovered in webargs before 5.1.3, as used with marshmallow and other products. JSON parsing uses a short-lived cache to store the parsed JSON body. This cache is not thread-safe, meaning that incorrect JSON payloads could have been parsed for concurrent requests.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "webargs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.1.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-9710"
}, {
"type" : "WEB",
"url" : "https://github.com/marshmallow-code/webargs/issues/371"
}, {
"type" : "WEB",
"url" : "https://github.com/marshmallow-code/webargs/pull/373"
}, {
"type" : "WEB",
"url" : "https://github.com/marshmallow-code/webargs/commit/716bd8d1f24c84aaf99170efaa17d1d34206f6c0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/marshmallow-code/webargs"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/webargs/PYSEC-2019-139.yaml"
}, {
"type" : "WEB",
"url" : "https://webargs.readthedocs.io/en/latest/changelog.html"
}, {
"type" : "WEB",
"url" : "https://webargs.readthedocs.io/en/latest/changelog.html#id24"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-362" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:24:21Z",
"nvd_published_at" : null
}
}