Togoder security

npm package security report

supports-color npm package: is it safe?

No malicious code found.

No issues Version 10.2.2 Files reviewed 2 Size 4.6 KB Scanned

Summary

Togoder Security scanned the npm package supports-color@10.2.2 on Oct 6, 2026. An AI review of 2 source files produced 2 low severity findings. No malicious behavior, install-time payloads, credential theft or exfiltration were identified.

0
critical
0
high
0
medium
2
low

Findings 2

low

Environment Variable Access

NPS-7776DC16E125

The code reads environment variables such as FORCE_COLOR, TERM, CI, and others to determine terminal color support. This is a legitimate use case for the 'supports-color' package and does not involve harvesting sensitive credentials or exfiltrating data.

index.js
low

Top-level Code Execution

NPS-07623BED441D

The code executes at import time to compute color support by inspecting process arguments and environment variables. This is expected behavior for the 'supports-color' package and is not malicious.

index.js

Files reviewed

FileVerdictWhat the reviewer saw
browser.js safe No malicious patterns detected
index.js safe The code is a legitimate implementation of terminal color detection (supports-color) with no malicious patterns or security concerns.

Affected version ranges

None of the 3 scanned versions of supports-color are flagged high or critical. The latest scanned version, 10.2.2, is clean. Only versions we have scanned are listed; unscanned versions between them are not covered.

5.5.010.2.2
VersionsVerdictCountRangeTop findings
10.2.2 No issues 1 10.2.2
8.1.1 Not scanned 1 8.1.1
7.2.0 No issues 1 7.2.0
7.1.0 Not scanned 1 7.1.0
5.5.0 No issues 1 5.5.0

Full list, including published versions not scanned yet: version ranges API.

Scanned versions of supports-color

VersionVerdictFilesScanned
10.2.2 No issues 2 Oct 6, 2026
7.2.0 No issues 2 Oct 6, 2026
5.5.0 No issues 2 Oct 6, 2026

Frequently asked questions

Is supports-color safe to use?

Our AI source review of supports-color@10.2.2 found no malicious code: no install-time payloads, credential theft, exfiltration, obfuscated loaders or backdoors.

Does supports-color contain malware?

No malware was identified in supports-color@10.2.2 when Togoder Security scanned it on Oct 6, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.

How was supports-color checked?

Togoder Security downloaded the published npm package and had an AI model read its 2 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.

How do I scan supports-color together with the rest of my dependencies?

Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in supports-color@10.2.2, cost nothing.

Related security reports