CVE-2025-22151

Low

Description

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.

SeverityLow
CVSS3.7
Exploit probability—
ProductStrawberry-graphql
PublishedJan 9, 2025
First seenJan 9, 2025
Weakness typeCWE-843CWE-843

How to fix

Update
  • strawberry-graphql0.257.0 or later

Affected products

ProductAffected versionsFixed in
strawberry-graphqlPyPI0.182.0 ≤ v < 0.257.00.257.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-22151 · Strawberry-graphql · Dark Radar