strawberry-graphql@0.235.1.dev1719337273 vulnerabilities

A library for creating GraphQL APIs

  • latest version

    0.257.0.dev1735244504

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    14 days ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • 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)