Vulnerability DatabaseGHSA-xh55-3p42-7v2h

GHSA-xh55-3p42-7v2h: 
Python vulnerability analysis and mitigation

Impact

Strawberry granted access whenever a permission's has_permission returned a truthy value. Some return values can't be evaluated as a permission decision but are always truthy, so the protected field or mutation ran even when the permission meant to deny access. This happens when has_permission is written as an async generator (an async def that uses yield) or a generator (a def that uses yield), or when it returns an async generator or other non-boolean object. It affects queries and mutations under both execute_sync and execute. Applications are only affected if they have a permission class written this way. Permissions that return True/False, or are async def functions that return a boolean, are not affected.

Patches

Fixed in 0.338.0 (#4764). has_permission must now return, or resolve to, a boolean. Any other value raises PermissionReturnedNonBooleanError instead of granting access. This is a breaking change for permissions that return other truthy or falsy values, such as a user object or None. Wrap those results in bool(...) to keep the same behaviour. See the 0.338.0 breaking changes guide.

Workarounds

Make sure every has_permission method returns True or False (or is an async def that returns one) and does not use yield.


Source: NVD

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-116579MEDIUM5.9
  • Python logoPython
  • autobahn
NoYesOct 26, 2026
CVE-2026-116577MEDIUM5.3
  • Python logoPython
  • tornado
NoYesOct 26, 2026
CVE-2026-115927MEDIUM5.3
  • Python logoPython
  • pcs.src
NoYesOct 26, 2026
GHSA-xh55-3p42-7v2hMEDIUM4.8
  • Python logoPython
  • strawberry-graphql
NoYesOct 26, 2026
CVE-2026-116578LOW2.1
  • Python logoPython
  • pcs.src
NoYesOct 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management