Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

npm/make-fetch-happen
main @ cc5f79c
2
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Improper Certificate Validation: 1 prior fix. Scrutinize any change in this area.
lib/options.js: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Improper Certificate Validation: The library previously disabled TLS verification by default when explicit configuration flags were missing, ignoring global environment overrides. This exposed users to MitM attacks because the connection context failed to safely default to checking certificate validity. Future modifications to request options parsing must ensure fallback mechanisms fail closed.
Information Disclosure: During fetch retries, raw URLs containing sensitive npm registry authentication credentials were emitted to the console log. Logging utilities must systematically pass URLs through a redaction filter before outputting network operation details.