Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.tls.hostname-check-disabled

TLS hostname verification is disabled with a no-op checkServerIdentity. Any valid certificate for any domain is accepted, so the connection can be intercepted.

Last updated:

Suite: Security

javascript, typescript

TLS hostname verification is disabled with a no-op checkServerIdentity. Any valid certificate for any domain is accepted, so the connection can be intercepted.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Remove the override, or call tls.checkServerIdentity(host, cert) first and add extra checks (e.g. pinning) after it.

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.