graphql-core@3.3.0a1

GraphQL-core is a Python port of GraphQL.js, the JavaScript reference implementation for GraphQL.

  • latest version

    3.3.0

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    26 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the graphql-core package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Inefficient Algorithmic Complexity

    graphql-core is a GraphQL implementation for Python, a port of GraphQL.js, the JavaScript reference implementation for GraphQL.

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the OverlappingFieldsCanBeMergedRule validation rule in overlapping_fields_can_be_merged.py. The rule compares every pair of fields sharing a response name and recurses into their sub-selections, producing O(n^2) complexity that worsens when inline fragments repeat the same response name at multiple nesting levels. An attacker can send a query that drives validation into minutes of CPU consumption on a single request, exhausting server resources.

    How to fix Inefficient Algorithmic Complexity?

    Upgrade graphql-core to version 3.2.12, 3.3.0rc1 or higher.

    [3.0.0,3.2.12)[3.3.0a1,3.3.0rc1)