Skip to content
MediumVulnerability

GHSA-6whj-7qmg-86qj: Khoj has an IDOR in Notion OAuth Flow that Enables Index Poisoning

Published
Record updated
View JSON
Affected
  • khoj <= 2.0.0b25.dev3
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

An IDOR in the Khoj Notion OAuth callback (`/auth/callback` in `src/khoj/routers/notion.py`) accepts any user UUID passed as the `state` parameter without verifying that the user started the flow. An attacker who learns a victim's UUID, which can leak through shared conversations containing AI-generated images, can replace the victim's Notion configuration with their own and gain access to the victim's Khoj search index.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.