{"cve":"CVE-2025-22151","nvd":{"published":"2025-01-09T19:15:20.410","modified":"2026-06-17T08:45:22.073","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7},"cwes":["CWE-843"],"references":["https://github.com/strawberry-graphql/strawberry/commit/526eb82b70451c0e59d5a71ae9b7396f59974bd8","https://github.com/strawberry-graphql/strawberry/security/advisories/GHSA-5xh2-23cc-5jc6"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:58:20.756570362+00:00"},"epss":{"cve":"CVE-2025-22151","score":0.00385,"percentile":0.32599,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5xh2-23cc-5jc6","url":"https://osv.dev/vulnerability/GHSA-5xh2-23cc-5jc6","summary":"Strawberry GraphQL has type resolution vulnerability in node interface that allows potential data leakage through incorrect type resolution","modified":"2026-07-07T17:56:59.466351298Z","packages":[{"ecosystem":"PyPI","name":"strawberry-graphql","purl":"pkg:pypi/strawberry-graphql","ranges":[">=0.182.0 <0.257.0"],"fixed":["0.257.0"]}]},{"id":"PYSEC-2026-1946","url":"https://osv.dev/vulnerability/PYSEC-2026-1946","summary":"Strawberry GraphQL has type resolution vulnerability in node interface that allows potential data leakage through incorrect type resolution","modified":"2026-07-07T17:48:12.646093519Z","packages":[{"ecosystem":"PyPI","name":"strawberry-graphql","purl":"pkg:pypi/strawberry-graphql","ranges":[">=0.182.0 <0.257.0"],"fixed":["0.257.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}