cve.bz

CVE-2025-22151 strawberry-graphql strawberry: Type Confusion

3.7 lowEPSS 0.4%Fix available

Low (3.7) in strawberry-graphql strawberry. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in strawberry-graphql 0.257.0.

On this page
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.

Severity

CVSS 3.1

3.7 low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-01-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-843 Access of Resource Using Incompatible Type (Type Confusion)
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • strawberry-graphql (PyPI): fixed in 0.257.0

Ask an AI about this CVE

Show the promptExplain CVE-2025-22151 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-22151?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-22151?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-22151 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
strawberry-graphql strawberry>= 0.182.0, < 0.257.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5xh2-23cc-5jc6PyPIstrawberry-graphql>=0.182.0 <0.257.00.257.0
PYSEC-2026-1946PyPIstrawberry-graphql>=0.182.0 <0.257.00.257.0

References

Check your stackJSON