GHSA-fjq3-5pxw-4wj4
Vulnerability from github
Published
2021-04-07 21:06
Modified
2024-11-19 15:34
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.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "webargs"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.0.0"
            },
            {
              "fixed": "5.5.3"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "webargs"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.0.0b1"
            },
            {
              "fixed": "6.0.0b4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2020-7965"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-352"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-03-29T22:19:18Z",
    "nvd_published_at": "2020-01-29T15:15:00Z",
    "severity": "HIGH"
  },
  "details": "flaskparser.py in Webargs 5.x through 5.5.2 doesn\u0027t 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.",
  "id": "GHSA-fjq3-5pxw-4wj4",
  "modified": "2024-11-19T15:34:04Z",
  "published": "2021-04-07T21:06:30Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7965"
    },
    {
      "type": "WEB",
      "url": "https://github.com/marshmallow-code/webargs/commit/b9ee8b0aa668207a363d9fd21d967eeadb975c3e"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/marshmallow-code/webargs"
    },
    {
      "type": "WEB",
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/webargs/PYSEC-2020-156.yaml"
    },
    {
      "type": "WEB",
      "url": "https://webargs.readthedocs.io/en/latest/changelog.html"
    },
    {
      "type": "WEB",
      "url": "https://webargs.readthedocs.io/en/latest/changelog.html#b4-2020-01-28"
    },
    {
      "type": "WEB",
      "url": "https://webargs.readthedocs.io/en/latest/changelog.html#id11"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Cross-Site Request Forgery in Webargs"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…