Strawberry GraphQL: Synchronous permission checks can treat an awaitable authorization result as truthy
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| strawberry-graphql | strawberry | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Strawberry | Strawberry |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-pfvf-fwfp-25mp | Strawberry GraphQL: Synchronous permission checks can treat an awaitable authorization result as truthy |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.449% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Strawberry
Strawberry strawberry |
|
| Vendors & Products |
Strawberry
Strawberry strawberry |
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-253 | |
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Strawberry GraphQL: Synchronous permission checks can treat an awaitable authorization result as truthy | |
| Weaknesses | CWE-863 | |
| References |
|
|
| Metrics |
cvssV3_1
|