Skip to content
OpenAdvisories
High · 7.5 CVE-2026-107728 EUVD-2026-95392GHSA-pfvf-fwfp-25mpPYSEC-2026-4303

Strawberry GraphQL: Synchronous permission checks can treat an awaitable authorization result as truthy

Published Oct 8, 2026 · Updated Oct 14, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
strawberry-graphql strawberry >= 0.217.0, < 0.326.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI strawberry-graphql >= 0.217.0, < 0.326.1 0.326.1 GHSA-pfvf-fwfp-25mp

References