Vulnerability DatabaseGHSA-xcgp-hwgr-q92j

GHSA-xcgp-hwgr-q92j: 
JavaScript vulnerability analysis and mitigation

Summary

validateRedirectUrl() is documented to allow only same-site relative paths and the karakeep:// mobile scheme. On Karakeep 0.34.1, a logged-in request to /signup can still be redirected to another host. A redirectUrl that starts with "/" followed by a backslash is accepted. Browsers treat "" as "/" in special URLs, so the value becomes a protocol-relative URL and leaves the Karakeep origin. The session cookie is not sent to the other host. Severity is low.

Details

Affected code:

  • packages/shared/utils/redirectUrl.ts — validateRedirectUrl() returns the input unchanged when it starts with "/" and does not start with "//". A backslash after the first slash therefore passes.
  • apps/web/app/signup/page.tsx — when a session exists, the validated value is passed to Next.js redirect(). The same helper still rejects "//example.com", "https://example.com", and "javascript:" URLs, so the existing check is active and this input bypasses it. Node applies the same normalization as Chrome: new URL("/\example.com", "http://localhost:3000") resolves to "http://example.com/". Tested on ghcr.io/karakeep-app/karakeep:0.34.1. GET /api/version returned {"version":"0.34.1"}.

Proof of concept

Setup: Karakeep 0.34.1, signed in with any local account. No extra configuration is required.

  1. While logged in, request: /signup?redirectUrl=/\example.com
  2. The server responds with HTTP 307 and this Location header: /\example.com
  3. Chrome follows that Location and ends on: https://example.com/ The same request while logged out renders the signup page and does not redirect. Requests with redirectUrl set to //example.com, https://example.com, or javascript:alert(1) stay on the Karakeep origin.

Impact

CWE-601: URL redirection to an untrusted site. A logged-in user who opens a crafted /signup link can be sent to an external site while the link still points at the Karakeep host. This can be used for phishing. The session cookie does not follow the redirect, and no bearer token is placed in the URL. An unauthenticated visitor is not redirected.


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-g78f-3cr8-fhw5MEDIUM6.5
  • JavaScript logoJavaScript
  • imapflow
NoYesNov 15, 2026
GHSA-4j79-qhcg-f5wvMEDIUM6.4
  • JavaScript logoJavaScript
  • systeminformation
NoYesNov 15, 2026
GHSA-fcj7-c534-vj7fMEDIUM5.9
  • JavaScript logoJavaScript
  • find-my-way
NoNoNov 15, 2026
GHSA-chpj-828m-9wj6MEDIUM4.8
  • JavaScript logoJavaScript
  • karakeep
NoYesNov 15, 2026
GHSA-xcgp-hwgr-q92jLOW3.5
  • JavaScript logoJavaScript
  • karakeep
NoYesNov 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management