Skip to main content
← All vulnerabilities
CVE-2025-22151GHSA-5XH2-23CC-5JC6PYSEC-2026-1946

Strawberry GraphQL has a type resolution vulnerability

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.257.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Strawberry GraphQL is a library for creating GraphQL APIs. Starting in 0.182.0 and prior to version 0.257.0, a type confusion vulnerability exists in Strawberry GraphQL's relay integration that affects multiple ORM integrations (Django, SQLAlchemy, Pydantic). The vulnerability occurs when multiple GraphQL types are mapped to the same underlying model while using the relay node interface. When querying for a specific type using the global node field (e.g., FruitType:some-id), the resolver may incorrectly return an instance of a different type mapped to the same model (e.g., SpecialFruitType). This can lead to information disclosure if the alternate type exposes sensitive fields and potential privilege escalation if the alternate type contains data intended for restricted access. This vulnerability is fixed in 0.257.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • strawberry-graphql strawberry

    From 0.182.0 · fixed in 0.257.0

  • strawberry-graphqlPyPI

    From 0.182.0 · fixed in 0.257.0

References 2

GitHub · strawberry-graphql/strawberry