CVE-2026-8765 Kilo-Org kilocode File Diff API Endpoint worktree-diff.ts Bun.file path traversal

Medium 5.3 Published Updated

Remote attackers can exploit a path traversal flaw in the File Diff API to read arbitrary files from the server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-8765?

CVE-2026-8765 is a medium-severity path traversal vulnerability in Kilo-Org kilocode, published on 17 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability was detected in Kilo-Org kilocode up to 7.0.47. This vulnerability affects the function Bun.file of the file packages/opencode/src/kilocode/review/worktree-diff.ts of the component File Diff API Endpoint. Performing a manipulation of the argument File results in path traversal. It is possible to initiate the attack remotely. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-22

Which versions are affected by CVE-2026-8765?

It affects 1 product.

Products include Kilo Kilo Code.

How do I fix CVE-2026-8765?

No fix has been published for CVE-2026-8765 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-8765 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-8765 exists.

Sources

Also known as GHSA-mwv7-rw63-qfm9.

Is CVE-2026-8765 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free