# form-data@4.0.6 security report (npm)

- Verdict: **No issues** (risk level: safe)
- Scanned: 2026-10-04T14:37:20.000Z
- Files reviewed: 3
- Findings: 2 low severity findings
- Report: https://security.togoder.click/npm/form-data@4.0.6
- Source: Togoder Security (https://security.togoder.click), AI source-code review

## Summary

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

## Findings

### [low] Dynamic Header Injection Protected

Finding ID: `NPS-913EAB86A820`

File: `lib/form_data.js:22`

The code includes escapeHeaderParam() to sanitize CR/LF/quote characters in field names and filenames, mitigating header injection / multipart part smuggling. Custom options.header values are used as-is, which is expected library behavior and caller-controlled.

### [low] HTTP Request Capability

Finding ID: `NPS-8EA44EF661AA`

File: `lib/form_data.js:327`

The module includes a submit() method that can send the form data to an HTTP/HTTPS endpoint via http.request/https.request. However, this is a documented, intentional feature for submitting forms and not hidden exfiltration; it is invoked only by the caller.

## Files reviewed

- `lib/browser.js` (safe): Cleared by Jev triage; no further analysis needed
- `lib/form_data.js` (safe): This is the legitimate form-data library; no malicious patterns such as exfiltration, credential harvesting, obfuscation, backdoors, child_process execution, or install-time hooks were detected.
- `lib/populate.js` (safe): Cleared by Jev triage; no further analysis needed

## Version ranges

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

- 4.0.4 – 4.0.6 (`>=4.0.4 <=4.0.6`): clean

## Scanned versions

- [4.0.6](https://security.togoder.click/npm/form-data@4.0.6): safe, 2026-10-04T14:37:20.000Z
- [4.0.5](https://security.togoder.click/npm/form-data@4.0.5): safe, 2026-10-04T16:31:43.000Z
- [4.0.4](https://security.togoder.click/npm/form-data@4.0.4): safe, 2026-05-15T12:30:25.000Z

AI analysis is guidance, not a guarantee. Methodology: https://security.togoder.click/methodology
