> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# package-script-tls-verification-disabled

> A package.json script turns off TLS certificate verification, for example NODE_TLS_REJECT_UNAUTHORIZED=0 or strict-ssl false.

## What it flags

A `package.json` script that turns off TLS certificate verification: `NODE_TLS_REJECT_UNAUTHORIZED=0`, `strict-ssl false` or `--strict-ssl=false`, `--no-strict-ssl`, Yarn `strictSSL false`, Git `http.sslVerify false` or `GIT_SSL_NO_VERIFY`, and `--insecure`, curl `-k` (also in a flag group such as `-fsSLk`) or `--no-check-certificate` downloads. Anyone on the network path can then impersonate the registry or server the script contacts. Commands that only `echo` or `printf` these words are not reported unless their output is piped or redirected, as in `echo strict-ssl=false >> .npmrc`.

Trust a corporate or development certificate authority with `NODE_EXTRA_CA_CERTS` or the npm `cafile` setting instead.

```json theme={null}
"build": "NODE_EXTRA_CA_CERTS=./certs/corp-ca.pem next build"
```

No automatic fix: a human decides.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "package-script-tls-verification-disabled": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.