MediumGHSA-grjv-gjgr-66g2CVE-2024-38361GO-2024-2939

SpiceDB exclusions can result in no permission returned when permission expected

Published 20 Jun 2024 · Updated 10 Sept 2026

Is your project on an affected github.com/authzed/spicedb?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<1.33.1
Fixed in
1.33.1
Update to the fixed version for your release line, for example:go get github.com/authzed/spicedb@v1.33.1

Details

Background

Use of an exclusion under an arrow that has multiple resources may resolve to NO_PERMISSION when permission is expected.

For example, given this schema:

definition user {}

definition folder {
  relation member: user
  relation banned: user
  permission view = member - banned
}

definition resource {
  relation folder: folder
  permission view = folder->view
}

If the resource exists under *multiple* folders and the user has access to view more than a single folder, SpiceDB may report the user does not have access due to a failure in the exclusion dispatcher to request that *all* the folders in which the user is a member be returned

Impact

Permission is returned as NO_PERMISSION when PERMISSION is expected on the CheckPermission API.

Workarounds

None

Is GHSA-grjv-gjgr-66g2 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/authzed/spicedb, and gives you the command that fixes it.

More advisories for github.com/authzed/spicedb

  • LowCVE-2026-46668SpiceDB: Caveat structures with nested lists can result in improper cache reuse in github.com/authzed/spicedb · 25 Jun 2026
  • LowCVE-2026-40091SpiceDB's SPICEDB_DATASTORE_CONN_URI is leaked on startup logs in github.com/authzed/spicedb · 25 Jun 2026
  • LowCVE-2026-55866SpiceDB: Checks involving relations with caveats can result in unconditional permission when conditional permission is expected in github.com/authzed/spicedb · 25 Jun 2026
  • LowCVE-2026-55866SpiceDB: Checks involving relations with caveats can result in unconditional permission when conditional permission is expected · 19 Jun 2026
  • LowCVE-2026-46668SpiceDB: Caveat structures with nested lists can result in improper cache reuse · 21 May 2026
  • MediumCVE-2026-40091SpiceDB's SPICEDB_DATASTORE_CONN_URI is leaked on startup logs · 14 Apr 2026
All 31 advisories for github.com/authzed/spicedb

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.