npm / supports-color / 11.0.0

supports-color 11.0.0

Source
https://github.com/chalk/supports-color
Tag scanned
v11.0.0
Compared with
v10.2.2 (0 signals introduced since)
Files
8 scanned, 1 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 1 info
Scan time
2.7 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 1 of 1 warn and critical signal; 1 demoted to info.
Disclude version
4.1.0
Scanned (UTC)
2026-10-22 10:09

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info warn → info by review dynamic-import test.js:9:41

    dynamic `import(...)` with a non-literal specifier (ast pass, confidence 0.80)

    
    const importFresh = async moduleName => import(`${moduleName}?${randomInt(100_000_000)}`);
    
    const importMain = async () => {
    likely benign LLM, confidence 0.85 A test helper that dynamically imports a module with a random query string to bust the module cache.
    Reasoning

    The dynamic import uses a template string with a cache-busting query suffix from randomInt, a common pattern for re-importing modules fresh in tests. The specifier is caller-supplied but this is test scaffolding, not a dropper or obfuscated payload. Benign-looking, though the specifier is non-literal so a doubt remains.

Reproduce This Scan

Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.

cargo install disclude --version 4.1.0
git clone https://github.com/chalk/supports-color supports-color && cd supports-color
git checkout v11.0.0
disclude scan --severity info --diff v10.2.2 .