Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.xss.dom-location-source

Data from the page URL, referrer or window.name is inserted as HTML through jQuery or another HTML-parsing API (DOM-based cross-site scripting).

Last updated:

Suite: Security

javascript, typescript

Data from the page URL, referrer or window.name is inserted as HTML through jQuery or another HTML-parsing API (DOM-based cross-site scripting).

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Insert the value as text (.text(), textContent) or sanitize it with DOMPurify before passing it to an HTML API.

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.