strawberry-graphql@0.227.0.dev1713475585

A library for creating GraphQL APIs

  • latest version

    0.316.0

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    14 days ago

  • licenses detected

    • [0.1.0,0.314.0)
  • Direct Vulnerabilities

    Known vulnerabilities in the strawberry-graphql 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
    Allocation of Resources Without Limits or Throttling

    strawberry-graphql is an A library for creating GraphQL APIs

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the WebSocket subscription handling process. An attacker can exhaust server resources by sending a large number of subscribe messages with unique IDs over a single connection, causing unbounded allocation of asyncio.Task objects and leading to memory exhaustion and event loop saturation.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade strawberry-graphql to version 0.312.3 or higher.

    [,0.312.3)
    • H
    Missing Authentication for Critical Function

    strawberry-graphql is an A library for creating GraphQL APIs

    Affected versions of this package are vulnerable to Missing Authentication for Critical Function via the on_ws_connect process. An attacker can gain unauthorized access to WebSocket subscription endpoints by connecting with the legacy graphql-ws subprotocol and sending a start message directly, bypassing the required authentication handshake.

    Note:

    This is only exploitable if the application relies on on_ws_connect for authentication or authorization.

    How to fix Missing Authentication for Critical Function?

    Upgrade strawberry-graphql to version 0.312.3 or higher.

    [,0.312.3)
    • M
    Insufficient Type Distinction

    strawberry-graphql is an A library for creating GraphQL APIs

    Affected versions of this package are vulnerable to Insufficient Type Distinction in the relay integration that affects multiple ORM integrations (Django, SQLAlchemy, Pydantic). An attacker can access unauthorized data by querying for a specific type using the global node field, which may incorrectly return an instance of a different type mapped to the same model.

    Note:

    This is only exploitable if Multiple GraphQL types inherit from relay.Node, these types are mapped to the same database model and the global node field is used for type resolution.

    How to fix Insufficient Type Distinction?

    Upgrade strawberry-graphql to version 0.257.0 or higher.

    [0.182.0,0.257.0)
    • M
    Cross-Site Request Forgery (CSRF)

    strawberry-graphql is an A library for creating GraphQL APIs

    Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF) due to the default settings of exemption from Django's CsrfViewMiddleware protection and support for multipart file uploads, in all integrations.

    Note: After the fix, clients need to send CSRF tokens with every request.

    How to fix Cross-Site Request Forgery (CSRF)?

    Upgrade strawberry-graphql to version 0.243.0 or higher.

    [,0.243.0)