We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-22151

Strawberry GraphQL has a type resolution vulnerability



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.

Reserved 2024-12-30 | Published 2025-01-09 | Updated 2025-01-09 | Assigner GitHub_M


LOW: 3.7CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Problem types

CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Product status

>= 0.182.0, < 0.257.0
affected

References

github.com/...wberry/security/advisories/GHSA-5xh2-23cc-5jc6

github.com/...ommit/526eb82b70451c0e59d5a71ae9b7396f59974bd8

cve.org (CVE-2025-22151)

nvd.nist.gov (CVE-2025-22151)

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2025-22151

Support options

Helpdesk Chat, Email, Knowledgebase
Subscribe to our newsletter to learn more about our work.