# GHSA-vhvq-fv9f-wh4q: LookupResources Cursor section tampering can crash SpiceDB process via tuple.MustParse panic

> An attacker with a valid token can crash the SpiceDB server by sending a malformed cursor token, causing a denial of service.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 6 Feb 2026
- **Also known as:** GO-2026-4465

## What is GHSA-vhvq-fv9f-wh4q?

GHSA-vhvq-fv9f-wh4q is a denial of service vulnerability in github.com/authzed/spicedb, published on 6 Feb 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

## Description
A malformed or tampered-with LookupResources [Cursor token](https://buf.build/authzed/api/docs/main:authzed.api.v1#authzed.api.v1.Cursor) can cause a panic in the SpiceDB process if it fails to parse. If an attacker were able to make requests to a SpiceDB instance, they could affect its availability.

## Reproduction
If one was to take a cursor from a LookupResources call, decode it according to the logic that SpiceDB uses, and modify the Sections field to include an invalid relationship string, the process will panic.

## Impact
An attacker would need both the ability to create a gRPC connection to your SpiceDB instance and a valid token, or else the ability to pass a cursor token from outside your application through to your SpiceDB instance.

If an attacker had this ability, they could bring down SpiceDB instances, reducing the availability of SpiceDB and any service that depends on it.

## Mechanism
The SpiceDB process does not validate the contents of this `Sections` component of the `Cursor` message. In affected versions, it uses a parsing function that calls `panic` if the value cannot be parsed as a relationship. 

## Fix
This issue was fixed in https://github.com/authzed/spicedb/pull/2878.

## Remediations
* Prevent client control of the `optional_cursor` field in `LookupResources` calls
* Upgrade to an unaffected version

## Which versions are affected by GHSA-vhvq-fv9f-wh4q?

3 open source packages ship an affected version, including github.com/authzed/spicedb.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/authzed/spicedb` | Go | All versions | 1.49.1 |
| `github.com/authzed/spicedb` | Go | From 1.29.3 | 1.49.1 |
| `github.com/authzed/spicedb` | Go | From 1.29.3 | 1.49.1 |

## How do I fix GHSA-vhvq-fv9f-wh4q?

Upgrade github.com/authzed/spicedb to 1.49.1 or later.

## Is GHSA-vhvq-fv9f-wh4q being exploited?

There is no known exploitation of GHSA-vhvq-fv9f-wh4q in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-vhvq-fv9f-wh4q and fix it if it is affected.

What it is: GHSA-vhvq-fv9f-wh4q is a denial of service vulnerability in github.com/authzed/spicedb, published on 6 Feb 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-vhvq-fv9f-wh4q in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/authzed/spicedb (Go): affected all versions; fixed in 1.49.1
- github.com/authzed/spicedb (Go): affected from 1.29.3; fixed in 1.49.1
- github.com/authzed/spicedb (Go): affected from 1.29.3; fixed in 1.49.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-vhvq-fv9f-wh4q/ (Markdown: https://insights.sbomify.com/GHSA-vhvq-fv9f-wh4q/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-vhvq-fv9f-wh4q

---
From sbomify Insights: https://insights.sbomify.com/GHSA-vhvq-fv9f-wh4q/
Summaries are generated and may contain mistakes; the official description above is the record.
