Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.open-redirect.client-location

The browser navigates to a URL taken from the query string or fragment. Attackers can send links that redirect users to phishing pages or run javascript: URLs.

Last updated:

Suite: Security

javascript, typescript

The browser navigates to a URL taken from the query string or fragment. Attackers can send links that redirect users to phishing pages or run javascript: URLs.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Only follow relative paths (starting with a single /) or compare the parsed URL's origin with an allow-list before navigating.

References

Source: packages/engine/rules/sast/javascript.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.