form-data 4.0.6
- Source
- https://github.com/form-data/form-data
- Tag scanned
v4.0.6- Compared with
v4.0.5(1 signals introduced since)- Files
- 41 scanned, 5 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 30 info
- Scan time
- 18.6 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 29 of 29 warn and critical signals; 29 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-14 19:55
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
info
warn→ info by reviewdynamic-importtest/integration/test-header-injection.js:6:16new in this releasevar FormData = ;likely benign Header-injection test requires form_data via a harness-computed path.Reasoning
The file is a header-injection test, so CRLF content is expected test input. The require itself is a benign computed path to the local library.
-
var assert = common.; var FormData = ; var satisfies = .; var jsrp = && ; // eslint-disable-line global-requirelikely benign Test file requires the local form_data library via a computed path from the test harness.Reasoning
The non-literal require uses common.dir.lib, a test-harness path to the local form_data library, with the same pattern repeated across the test suite. Standard test setup, not a dropper or obfuscation. Only the static-analysis signal fires.
-
var FormData = ; /*likely benign Test requires the local form_data module through a harness-computed path.Reasoning
require(common.dir.lib + '/form_data') is a benign path join to the project's own library in a test file. The snippet shows nothing malicious.
-
var FormData = ; var IncomingForm = .;likely benign Test loads the local form_data library via common.dir.lib path concatenation.Reasoning
Same benign pattern: a computed require of the in-repo form_data module, alongside a normal formidable require used in tests.
-
var FormData = ; var testHeader = ;likely benign Header test requires form_data through a harness path.Reasoning
Computed require of the local library path in a header-test file. No execution of untrusted input or encoded payload is visible.
-
var FormData = ; var CRLF = '\r\n';likely benign String-header test requires the local form_data module via a computed path.Reasoning
Same harness-path require of form_data. The snippet only shows CRLF string constants, which are normal for multipart header tests.
-
var assert = common.; var FormData = ; var fake = .; var path = ;likely benign Error test loads form_data through common.dir.lib concatenation.Reasoning
The computed require points at the local form_data library, a routine pattern in this test suite. Other requires are ordinary npm modules.
-
var assert = common.; var FormData = ; var fs = ; var Readable = .;likely benign Sync length test requires the local form_data module via a computed path.Reasoning
Standard harness-computed require of the in-repo library. No obfuscation or dynamic execution of external data.
-
var assert = common.; var FormData = ; var fake = .; var fs = ;likely benign Length test loads form_data through a harness-computed path.Reasoning
Computed require of the local form_data module, consistent with the rest of the test directory.
-
var FormData = ;likely benign Boundary test requires form_data via common.dir.lib concatenation.Reasoning
Harness-path require of the project's own library in a boundary-generation test. No suspicious constructs in the snippet.
-
var FormData = ;likely benign Buffer test loads the local form_data library through a computed path.Reasoning
Same computed require of the in-repo form_data module in a buffer test. Nothing in the snippet indicates malicious behavior.
-
Buffer. -
var parseUrl = .; var FormData = ; // static server prepared for all testslikely benign HTTP response test loads form_data through a harness path.Reasoning
Computed require of the local form_data library in an HTTP test. The other requires are standard Node and npm modules. No payload or dropper behavior is shown.
-
var assert = common.; var FormData = ; var server;likely benign Boundary line-break test requires the local library through a computed path.Reasoning
Computed require of form_data via common.dir.lib, matching the repo's test convention. Nothing suspicious in the snippet.
-
var assert = common.; var FormData = ; var form = ;likely benign Test file requiring the form_data library via a computed test-directory path.Reasoning
The require path is built from common.dir.lib, a test-harness helper that points at the library's own lib directory. This is a standard test-setup pattern in the form-data test suite, not a dropper or hidden loader.
-
var fs = ; var FormData = ; var IncomingForm = .; var hasOwn = ;likely benign Test requiring the local form_data module through the harness path helper.Reasoning
The non-literal require resolves to common.dir.lib + '/form_data', a local library path set up by the test harness. The surrounding requires are ordinary test dependencies, so this is a legitimate pattern.
-
var FormData = ; var IncomingForm = .;likely benign Integration test loading form_data from the harness lib directory.Reasoning
The dynamic specifier is the test harness's lib directory joined with '/form_data'. It is only used inside a test, and the form-data test suite does this throughout.
-
var request = ; var FormData = ; var fs = ; var IncomingForm = .;likely benign Test requiring form_data from the local lib path, alongside request and formidable.Reasoning
The require uses a fixed harness path (common.dir.lib) plus a constant suffix, with no external or user-controlled input. It matches the normal test layout of the library.
-
var FormData = ; var expectedLength;likely benign Test loading the local form_data module via the common.dir.lib helper.Reasoning
This is the same harness-relative require of form_data inside a test file. Nothing in the snippet executes or fetches remote code.
-
var FormData = ;likely benign Boundary test requiring the local form_data library by computed path.Reasoning
The non-literal require points at the library's lib directory through the test harness. The file is a boundary-setting unit test and the pattern is routine.
-
var FormData = ;likely benign Non-string option test loading form_data from the test harness lib path.Reasoning
The require builds a path from common.dir.lib, a fixed local harness location. The test exercises non-string option handling and the loader is benign.
-
var fs = ; var FormData = ; var IncomingForm = .;likely benign Custom header submit test requiring form_data via harness path.Reasoning
The dynamic require resolves to the local form_data library through the harness helper, with no external source. The rest of the file is ordinary test setup.
-
var fs = ; var FormData = ; var remoteFile = 'http://localhost:' + common. + '/unicycle.jpg';likely benign Custom submit test loading form_data from the lib directory.Reasoning
common.dir.lib plus a fixed suffix is a local test-path construction. The file only fetches a local staticPort URL in a test, so there is no malicious indicator.
-
var assert = common.; var FormData = ; var server;likely benign HTTPS submit test requiring form_data via the common.dir.lib path.Reasoning
The require path is the test harness lib directory plus '/form_data'. HTTPS submit tests commonly use this layout, so the finding is a false positive from the non-literal-require heuristic.
-
var http = ; var FormData = ; var IncomingForm = .;likely benign Multi-part submit test loading the local form_data module.Reasoning
The non-literal require uses the harness's local lib path with a constant suffix. The file is a multipart submit test and contains no execution or network-loading pattern beyond that.
-
var http = ; var FormData = ; var IncomingForm = .; var times = 10;likely benign Multipart submit test requiring form_data through the harness path.Reasoning
The dynamic require resolves a fixed local library path via common.dir.lib. The surrounding code is a standard multipart upload test with no suspicious behavior.
-
var http = ; var FormData = ; var Readable = .; var util = ;likely benign Readable stream submit test loading form_data from the local lib directory.Reasoning
The require path comes from the harness's lib directory and a literal suffix, which is a local, non-attacker-controlled path. The readable-stream test uses only standard Node modules otherwise.
-
var assert = common.; var FormData = ; /**likely benign Test file loads the local form_data library via a path built from the test harness's lib directory.Reasoning
The require specifier is built from common.dir.lib, a test-harness path helper, plus a fixed module name. This is a standard pattern in the form-data library's test suite for loading the local library. No untrusted input reaches the specifier, and the AST signal is only a generic non-literal require warning.
-
var fs = ; var FormData = ; var remoteFile = 'http://localhost:' + common. + '/unicycle.jpg';likely benign Integration test requires the local form_data module through a harness-provided path.Reasoning
The non-literal require uses common.dir.lib with a fixed suffix to load the library under test. The surrounding code is ordinary integration test setup (fs, a localhost static server URL). Nothing here is dynamic or attacker-controlled.
-
var assert = common.; var FormData = ; ;likely benign Unit test loads the local FormData module via a harness path and checks its string tag.Reasoning
Same pattern as the sibling test files: the module path is composed from common.dir.lib and a constant suffix, and the module is then used only to check String(new FormData()). This is a benign test idiom.
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.
&&