Khoj Open Redirect Vulnerability in Login Page
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-601.
Summary
### Summary An attacker can use the `next` parameter on the login page to redirect a victim to a malicious page, while masking this using a legit-looking `app.khoj.dev` url. For example, `https://app.khoj.dev/login?next=//example.com` will redirect to the https://example.com page. ### Details The problem seems to be in this method: https://github.com/khoj-ai/khoj/blob/2667ef45449eb408ce1d7c393be04845be31e15f/src/khoj/routers/auth.py#L95 ### PoC Open the `https://app.khoj.dev/login?next=//example.com` url in a Gecko-based browser (Firefox). ### Impact The impact is low, and this could only be used in phishing attempts, but it's still a problem nonetheless.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | khoj-assistant (PyPI) | before 1.14.0 | 1.14.0 | Patch available | GHSA-564j-v29w-rqr6 |
- khoj-assistant (PyPI) Vendor— Affected before 1.14.0 Fixed in 1.14.0 Patch available GHSA-564j-v29w-rqr6
Remediation
- Fix · GHSA-564j-v29w-rqr6 khoj-assistant (PyPI) Fixed in 1.14.0 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-564j-v29w-rqr6
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences