CVE-2025-22151
published low CVSS 3.1 · 3.7Strawberry GraphQL has a type resolution vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| strawberry-graphql | — | strawberry>= 0.182.0, < 0.257.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.7 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| strawberry-graphql | strawberry | >= 0.182.0, < 0.257.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-843 CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')
References
2Provider assertions
2GitHub_M · cna
Strawberry GraphQL has a type resolution vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e47e937c789b783167771a1513a82cb55a22c46d934c09892d6e8a2b072ce486
- Ingested
- 23 Sep 2026, 08:40:04 UTC
- Source record
- Official CVE record