Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 94%

CVE-2026-13508: Incorrect Authorization in khoj-ai khoj

0
Medium
VulnerabilityCVE-2026-13508cvecve-2026-13508
Published: 06/28/2026 (06/28/2026, 21:45:10 UTC)
Source: CVE Database V5
Vendor/Project: khoj-ai
Product: khoj

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.

CVSS v4.0

Score 5.1medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
khoj-ai/khoj
pkg:github/khoj-ai/khoj
Affected versions
=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
CPE configurations
cpe:2.3:a:khoj-ai:khoj:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/05/2026, 23:24:50 UTC

Technical Analysis

This vulnerability affects the khoj-ai khoj product in versions up to 2.0.0-beta.28. The issue is located in the src/khoj/routers/api_chat.py file within the Conversation Sharing Handler component. An attacker can manipulate the conversation.agent argument, leading to incorrect authorization checks. This flaw allows remote attackers to potentially bypass intended access controls. Although an exploit has been published, no official patch or remediation has yet been released; a pull request containing a fix is awaiting acceptance.

Potential Impact

The vulnerability allows remote attackers with limited privileges to manipulate authorization controls, potentially gaining unauthorized access or actions within the conversation sharing functionality. The CVSS 4.0 base score of 5.1 reflects a medium severity impact with network attack vector, low attack complexity, and partial confidentiality, integrity, and availability impacts.

Mitigation Recommendations

No official fix or patch is currently available. A pull request with a fix exists but is not yet accepted. Users should monitor the vendor's repository or advisory channels for the acceptance and release of the fix. Until then, consider restricting access to the affected component or applying temporary access controls if feasible.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulDB
Date Reserved
2026-06-28T06:21:13.647Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a419e6c27e9c79719b34973

Added to database: 06/28/2026, 22:21:32 UTC

Last enriched: 07/05/2026, 23:24:50 UTC

Last updated: 08/12/2026, 12:41:08 UTC

Views: 70

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses