GHSA-564j-v29w-rqr6
Khoj Open Redirect Vulnerability in Login Page
GHSA-564j-v29w-rqr6 is a medium vulnerability (CVSS 6.3) in khoj-assistant, published July 8, 2024. No source lists public exploit code. Fixed in khoj-assistant 1.14.0.
- Severity
- 6.3 MediumCVSS 4.0, GitHub Advisories
- Exploit chance
- UnscoredNo EPSS score yet
- Exploitation
- None knownNot on CISA’s or ENISA’s lists
- Fixed in
1.14.0khoj-assistant +1 more
Description
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Passive
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- None
Affected packages
| Package | Affected | Fixed |
|---|---|---|
khoj-assistantPyPI | before 1.14.0 | 1.14.0 |
khoj-assistantPyPI | before 1.14.0, plus listed versions 0.1.00.1.100.1.10a16630153080.1.10a16631208620.1.10a1665241166 Show 45 moreShow less0.1.10a16661755930.1.10a16661786870.1.10a16662062550.1.10a16667110290.1.10a16699926680.1.20.1.30.1.40.1.50.1.5a16595790520.1.5a16595798980.1.5a16596137930.1.5a16596521220.1.5a16596575770.1.5a16596608750.1.5a16596645520.1.5a16596645850.1.5a16596647490.1.5a16596667760.1.5a16596696710.1.5a16597219510.1.5a16597884750.1.5a16597932700.1.5a16598774560.1.5a16598890970.1.5a16600688190.1.5a16601477460.1.5a16602510990.1.5a16602611230.1.5a16602673880.1.5a16603385170.1.5a16603420510.1.5a16603457610.1.5a16603554780.1.5a16603563250.1.5a16604161360.1.5a16604514250.1.5a16605338360.1.5a16605358230.1.5a16605783710.1.5a16606046080.1.5a16606584810.1.60.1.6a16606608020.1.6a1660756592 | 1.14.0 |
What each source reports
GitHub Advisories Score used 6.3
Khoj Open Redirect Vulnerability in Login Page
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.
- Record
GHSA-564j-v29w-rqr6- CVSS 4.0
- 6.3 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:H/SA:N - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-601
- Updated
- 2026-11-02
OSV 6.3
Khoj Open Redirect Vulnerability in Login Page
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.
- Record
GHSA-564j-v29w-rqr6- CVSS 4.0
- 6.3 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:H/SA:N - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-601
- Updated
- 2026-11-02
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
References
Left out here: 635 versions. The JSON record has them.