Vulnerabilities in pkg:pypi/webargs

PACKAGE
Advisory Identifier: GHSA-8554-jxcw-454q
Advisory Summary

CVE-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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/webargs

2 Known Advisory Record(s)

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

CVE Identifier CVE-2019-9710
GHSA Identifier GHSA-8554-jxcw-454q
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Webargs
Package Ecosystem PyPI
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

webargs fixed: 5.1.3
pip install webargs>=5.1.3
Verify Direct and Transitive Dependencies

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

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.

CVE-2019-9710 Affected Webargs Versions

1 component(s)
Fixed Versions:
5.1.3
Product / Package Ecosystem Affected Versions Fixed Version
webargs
PyPI
< 5.1.3
5.1.3

References

Frequently Asked Questions

What is CVE-2019-9710?
CVE-2019-9710 is a security vulnerability in Webargs involving Webargs mishandles concurrent JSON parsing under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Webargs versions are affected?
Affected versions include releases prior to 5.1.3 across affected packages: webargs.
What version fixes CVE-2019-9710?
Upgrading to 5.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is webargs affected?
Yes, webargs is affected in releases prior to 5.1.3. Upgrade your dependency to 5.1.3 or later.
What is the CVSS score of CVE-2019-9710?
CVE-2019-9710 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-9710?
CVE-2019-9710 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (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.).
How can I check PyPI dependencies for CVE-2019-9710?
Run the dependency tree command: 'pip show webargs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}