CVE-2026-13508 Details
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.
An authorization vulnerability has been identified in Khoj-AI versions up to 2.0.0-beta.28, specifically within the Conversation Sharing Handler component. The issue arises in the file 'src/khoj/routers/api_chat.py', where the handling of the 'conversation.agent' argument leads to incorrect authorization. This flaw allows for unauthorized access to private agent references when forking shared conversations, potentially exposing sensitive agent configurations such as persona, tool availability, and model selection across different users. The vulnerability can be exploited remotely, and the published exploit may be used in the wild.
A pull request to address this vulnerability has been submitted and is awaiting acceptance.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 28, 2026CISA-ADP
Assessed Jun 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/khoj-ai/khoj/ | [email protected] | Vendor |
| https://github.com/khoj-ai/khoj/issues/1327 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/khoj-ai/khoj/pull/1328 | [email protected] | Issue TrackingVendor |
| https://vuldb.com/cve/CVE-2026-13508 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/838812 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/374516 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/374516/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-285 | Improper Authorization | [email protected] |
| CWE-863 | Incorrect Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| khoj-ai khoj | <= 2.0.0-beta.28 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 29, 2026 | CVE Modified | CISA-ADP |
| Jun 28, 2026 | New CVE Received | [email protected] |
Volerion