CVE-2026-13508 khoj-ai khoj Conversation Sharing api_chat.py authorization

Medium 5.1 Published Updated

Attackers can bypass authorization in the conversation sharing handler to access or modify unauthorized chat data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-13508?

CVE-2026-13508 is a medium-severity missing authorization vulnerability in khoj-ai khoj, published on 28 Jun 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A flaw has been found in khoj-ai khoj up to 2.0.0-beta.28. This impacts an unknown function of the file src/khoj/routers/api_chat.py of the component Conversation Sharing Handler. This manipulation of the argument conversation.agent causes incorrect authorization. Remote exploitation of the attack is possible. The exploit has been published and may be used. The pull request to fix this issue awaits acceptance.

Weakness: CWE-863, CWE-285

Which versions are affected by CVE-2026-13508?

How do I fix CVE-2026-13508?

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

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-13508 being exploited?

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

Sources

Also known as GHSA-5f46-vq6x-rmc9.

Is CVE-2026-13508 in your software?

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

Check your SBOMs for free