Strawberry GraphQL has a type resolution vulnerability
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| strawberry-graphql | strawberry | 0.182.0 to before 0.257.0 | 0.257.0 | Patch available | CNA |
| — | strawberry-graphql (PyPI) | 0.182.0 to before 0.257.0 | 0.257.0 | Patch available | GHSA-5xh2-23cc-5jc6 |
- strawberry Vendorstrawberry-graphql Affected 0.182.0 to before 0.257.0 Fixed in 0.257.0 Patch available CNA
- strawberry-graphql (PyPI) Vendor— Affected 0.182.0 to before 0.257.0 Fixed in 0.257.0 Patch available GHSA-5xh2-23cc-5jc6
Remediation
- Fix · CNA strawberry (strawberry-graphql) Fixed in 0.257.0
- Fix · GHSA-5xh2-23cc-5jc6 strawberry-graphql (PyPI) Fixed in 0.257.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-22151
- 2026-10-03 Alias added: GHSA-5xh2-23cc-5jc6
References
More strawberry-graphql vulnerabilities
- TI-2026-69808 Strawberry GraphQL permission check can bypass with awaitable results CVSS 3.1HIGH 7.5
- TI-2026-35210 Strawberry GraphQL's Bypass of MaxAliasesLimiter via Fragment Spreads leading to GraphQL Alias Amplification CVSS 3.1MEDIUM 5.3
- TI-2026-35209 Strawberry GraphQL has a Circular Fragment Reference DOS CVSS 3.1MEDIUM 5.3
- TI-2009-01689 Directory traversal vulnerability in plugins/ddb/foot.php in Strawberry 1.1.1 allows… CVSS 2.0HIGH 9.3
- TI-2026-69807 Strawberry legacy graphql-ws retains completed subscription slots CVSS 3.1LOW 3.7
- TI-2026-27641 Strawberry GraphQL affected by a Denial of Service via unbounded WebSocket subscriptions CVSS 3.1HIGH 7.5
Sources
- CVE-2025-22151 · CVE Program
- CVE-2025-22151 · NVD
- FIRST EPSS
- GHSA-5xh2-23cc-5jc6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences