# CVE-2025-22151: Strawberry GraphQL has a type resolution vulnerability

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2025-01-09T18:51:18.221Z
- Modified: 2026-07-07T17:56:59.466Z
- Also known as: GHSA-5xh2-23cc-5jc6, PYSEC-2026-1946
- Weaknesses: CWE-351, CWE-843
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- strawberry-graphql strawberry: >= 0.182.0, < 0.257.0
- strawberry-graphql (PyPI): from 0.182.0 before 0.257.0

## Every score

- GitHub_M: 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`
- GitHub: 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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/strawberry-graphql/strawberry/security/advisories/GHSA-5xh2-23cc-5jc6> (web)
- <https://github.com/strawberry-graphql/strawberry/commit/526eb82b70451c0e59d5a71ae9b7396f59974bd8> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-22151> (advisory)
- <https://github.com/strawberry-graphql/strawberry> (package)
- <https://pypi.org/project/strawberry-graphql> (package)
- <https://github.com/advisories/GHSA-5xh2-23cc-5jc6> (advisory)

## Sources

- CVE List: [CVE-2025-22151](https://www.cve.org/CVERecord?id=CVE-2025-22151), CVE Terms of Use, modified 2025-01-09
- GitHub Advisory Database: [GHSA-5xh2-23cc-5jc6](https://github.com/advisories/GHSA-5xh2-23cc-5jc6), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-22151](https://nvd.nist.gov/vuln/detail/CVE-2025-22151), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1946](https://osv.dev/vulnerability/PYSEC-2026-1946), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-22151 · Whole record: https://cve.day/CVE-2025-22151.json · Rebuilt by cve.day 2026-11-25T22:58:53.202Z
