Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.xss.angular-bypass-security

Angular's sanitizer is bypassed (bypassSecurityTrust*) for a dynamic value. If any part of the value is user-controlled this is cross-site scripting.

Last updated:

Suite: Security

typescript, javascript

Angular's sanitizer is bypassed (bypassSecurityTrust*) for a dynamic value. If any part of the value is user-controlled this is cross-site scripting.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Bind the value normally so Angular sanitizes it, or sanitize it explicitly (sanitizer.sanitize(SecurityContext.HTML, value)) instead of bypassing the sanitizer.

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.