resolve 1.22.13
- Source
- https://github.com/browserify/resolve
- Tag scanned
v1.22.13- Compared with
v1.22.12(0 signals introduced since)- Files
- 94 scanned, 5 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 4 info
- Scan time
- 3.6 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 4 of 4 warn and critical signals; 4 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-14 19:21
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
// note: this must be require, not require.resolve, due to https://github.com/nodejs/node/issues/43274 var ; // eslint-disable-line no-loop-func t.;likely benign Test helper that requires each Node core module name in a loop to verify it loads.Reasoning
This is the test suite for the resolve package, iterating over Node core module names from resolve.core to check that each one can be required. A non-literal require is the intended behavior here, and the loop variable comes from a fixed internal list, not untrusted input. The eslint-disable comments show ordinary lint-suppressed test code.
-
st.;likely benign Assertion that requiring each core module does not throw, using a dynamic specifier.Reasoning
Same test pattern: st.doesNotThrow wraps require(mod) over core module names from the library's own list. Dynamic require is the purpose of the test; no attacker-controlled input or obfuscation is present.
-
st.;likely benign Nested test assertion requiring each core module dynamically to confirm it loads.Reasoning
Duplicate of the same test-suite pattern in a nested block, iterating over the library's own core module list with lint suppression. Benign.
-
var dir = path.; var tester = ; // eslint-disable-line global-requirelikely benign Test loads a fixture module via a path built from __dirname and a fixed subdirectory.Reasoning
The require path is built with path.join from __dirname and a fixed fixture directory, loading main.js from the test fixtures. The specifier is not attacker-controlled and the code is a normal test harness pattern.
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.
&&