CVE-2026-107728
Description
Strawberry GraphQL is a library for creating GraphQL APIs. From 0.217.0 until 0.326.1, PermissionExtension.resolve() on a synchronous field resolver evaluates the result of has_permission() for truthiness. When a custom permission declares has_permission() as a normal function but returns an awaitable, supports_sync does not classify it as asynchronous, the awaitable is not awaited, and its inherently truthy object value permits the protected resolver to run even when the result would resolve to false. This affects synchronous field resolvers under both execute_sync() and execute(); permissions declared with async def has_permission() and synchronous permissions returning a boolean are not affected. This issue is fixed in version 0.326.1.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
strawberry-graphqlPyPI | >= 0.217.0, < 0.326.1 | 0.326.1 |
Affected products
1- Range: <=0.326.1
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-pfvf-fwfp-25mpghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-107728ghsaADVISORY
- github.com/strawberry-graphql/strawberry/commit/2ebb79796c0e5ebb43cae1abd2b5a21363b1c00envdWEB
- github.com/strawberry-graphql/strawberry/pull/4605nvdWEB
- github.com/strawberry-graphql/strawberry/releases/tag/0.326.1nvdWEB
- github.com/strawberry-graphql/strawberry/security/advisories/GHSA-pfvf-fwfp-25mpnvdWEB
News mentions
0No linked articles in our index yet.