Skip to content

Infrastructure & CI

TLS certificate checking is turned offconfig.tls-verification-disabled

The code tells Node to accept any HTTPS certificate, including a fake one. Anyone on the network path (public Wi-Fi, a compromised router, a malicious proxy) can then read and change the traffic, including API keys and passwords it carries. AI assistants often add this to silence a "self-signed certificate" error.

  • In force Rule config.tls-verification-disabled
  • 3 clauses

At a glance

config.tls-verification-disabled
Severityhigh
CertaintyObserved — the code as written is the problem
Looks atyour source code
When it runsRuns on every scan

How to fix it

Remove `rejectUnauthorized: false` / `NODE_TLS_REJECT_UNAUTHORIZED=0`. If a server uses a private CA, trust that CA instead: `new https.Agent({ ca: fs.readFileSync("ca.pem") })` or, for Postgres, `ssl: { ca: process.env.DB_CA_CERT }`.

Check your own app

Run npx scanlyfix scan in your project. Every finding gets an id; after fixing, npx scanlyfix verify <id> proves it is gone.

If it is a false positive in your project, silence that one line with // scanlyfix-ignore-next-line config.tls-verification-disabled -- <why>.

All rules

Your code stays
on your machine

Only findings are uploaded, and only to your own dashboard.