CVE-2019-13611: Python engineio Python-engineio Vulnerable To Cross-Site Request Vulnerability

HIGH
Advisory Identifier: GHSA-j3jp-gvr5-7hwq
CVSS 8.8
CWE-352
Published
Advisory Summary

CVE-2019-13611 is a HIGH (CVSS 8.8) python-engineio vulnerable to cross-site request vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Python engineio libraries in the PyPI ecosystem. The issue involves python-engineio vulnerable to cross-site request forgery (csrf). Remediation is available by upgrading affected packages to version 3.9.0.

CVE-2019-13611 at a Glance

CVE Identifier CVE-2019-13611
GHSA Identifier GHSA-j3jp-gvr5-7hwq
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Python engineio
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2019-13611

To remediate this vulnerability, upgrade all affected Python engineio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

python-engineio fixed: 3.9.0
pip install python-engineio>=3.9.0
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 python-engineio

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2019-13611, inspect your installed packages using pip:

pip show python-engineio

Analyze the terminal output to locate any version of Python engineio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.9.0), your application is affected.

Note: The pip show python-engineio command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Python engineio, 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

## WebSocket cross-origin vulnerability ### Impact This is a Cross-Site Request Forgery (CSRF) vulnerability. It affects Socket.IO and Engine.IO web servers that authenticate clients using cookies. ### Patches python-engineio version 3.9.0 patches this vulnerability by adding server-side Origin header checks. ### Workarounds Do not use cookies for client authentication, or else add a CSRF token to the connection URL. ### References https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF) https://www.christian-schneider.net/CrossSiteWebSocketHijacking.html ### For more information If you have any questions or comments about this advisory: * Open an issue in [python-engineio](http://github.com/miguelgrinberg/python-engineio)

CVE-2019-13611 Affected Python engineio Versions

1 component(s)
Fixed Versions:
3.9.0
Product / Package Ecosystem Affected Versions Fixed Version
python-engineio
PyPI
< 3.9.0
3.9.0

References

Frequently Asked Questions

What is CVE-2019-13611?
CVE-2019-13611 is a security vulnerability in Python engineio involving python-engineio vulnerable to Cross-Site Request Forgery (CSRF) under CWE-352: Cross-Site Request Forgery (CSRF).
Which Python engineio versions are affected?
Affected versions include releases prior to 3.9.0 across affected packages: python-engineio.
What version fixes CVE-2019-13611?
Upgrading to 3.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is python-engineio affected?
Yes, python-engineio is affected in releases prior to 3.9.0. Upgrade your dependency to 3.9.0 or later.
What is the CVSS score of CVE-2019-13611?
CVE-2019-13611 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-13611?
CVE-2019-13611 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check PyPI dependencies for CVE-2019-13611?
Run the dependency tree command: 'pip show python-engineio'. 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-j3jp-gvr5-7hwq",
  "modified" : "2024-10-25T20:48:05Z",
  "published" : "2019-07-30T20:47:25Z",
  "aliases" : [ "CVE-2019-13611" ],
  "summary" : "python-engineio vulnerable to Cross-Site Request Forgery (CSRF) ",
  "details" : "## WebSocket cross-origin vulnerability\n\n### Impact\nThis is a Cross-Site Request Forgery (CSRF) vulnerability. It affects Socket.IO and Engine.IO web servers that authenticate clients using cookies.\n\n### Patches\npython-engineio version 3.9.0 patches this vulnerability by adding server-side Origin header checks.\n\n### Workarounds\nDo not use cookies for client authentication, or else add a CSRF token to the connection URL.\n\n### References\nhttps://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)\nhttps://www.christian-schneider.net/CrossSiteWebSocketHijacking.html\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [python-engineio](http://github.com/miguelgrinberg/python-engineio)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "python-engineio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.9.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.8.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/miguelgrinberg/python-engineio/security/advisories/GHSA-j3jp-gvr5-7hwq"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-13611"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/miguelgrinberg/python-engineio/issues/128"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-j3jp-gvr5-7hwq"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/miguelgrinberg/python-engineio"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/python-engineio/PYSEC-2019-170.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:41:53Z",
    "nvd_published_at" : null
  }
}