# whatwg-url@16.0.1 security report (npm)

- Verdict: **No issues** (risk level: safe)
- Scanned: 2026-10-06T14:15:00.000Z
- Files reviewed: 14
- Findings: 1 low severity finding
- Report: https://security.togoder.click/npm/whatwg-url@16.0.1
- Source: Togoder Security (https://security.togoder.click), AI source-code review

## Summary

Togoder Security scanned the npm package whatwg-url@16.0.1 on Oct 6, 2026. An AI review of 14 source files produced 1 low severity finding. No malicious behavior, install-time payloads, credential theft or exfiltration were identified.

## Findings

### [low] Dynamic code execution via eval

Finding ID: `NPS-65BAE3D980CB`

File: `lib/utils.js:61`

The initCtorRegistry function uses globalObject.eval('(async function* () {})').prototype to obtain the AsyncIteratorPrototype from the target realm. While eval is generally a red flag, this usage is constrained to a static string, occurs only when the global object lacks a cached constructor registry, and is wrapped in a try/catch fallback. It is a known pattern in webidl2js for cross-realm intrinsic lookup rather than an obfuscated payload or attacker-controlled execution.

## Files reviewed

- `index.js` (safe): No malicious patterns detected; this is a legitimate WHATWG URL implementation entry point that only re-exports URL parsing and serialization utilities.
- `lib/Function.js` (safe): No malicious patterns detected; the code is a standard WebIDL function converter wrapper with no exfiltration, obfuscation, or dynamic execution.
- `lib/URL-impl.js` (safe): No malicious patterns detected
- `lib/URL.js` (safe): This is a standard WebIDL-generated URL wrapper implementing the URL interface with no malicious patterns, network calls, filesystem access, or dynamic code execution.
- `lib/URLSearchParams-impl.js` (safe): Cleared by Jev triage; no further analysis needed
- `lib/URLSearchParams.js` (safe): This is a standard jsdom-generated WebIDL wrapper for URLSearchParams with no malicious patterns, network calls, or credential access.
- `lib/VoidFunction.js` (safe): No malicious patterns detected
- `lib/encoding.js` (safe): Cleared by Jev triage; no further analysis needed
- `lib/infra.js` (safe): Cleared by Jev triage; no further analysis needed
- `lib/percent-encoding.js` (safe): Cleared by Jev triage; no further analysis needed
- `lib/url-state-machine.js` (safe): No malicious patterns detected; this is a standard WHATWG URL parser implementation with no data exfiltration, credential harvesting, dynamic code execution, or other suspicious behavior.
- `lib/urlencoded.js` (safe): Cleared by Jev triage; no further analysis needed
- `lib/utils.js` (safe): The file is a standard webidl2js utility module containing no data exfiltration, credential harvesting, obfuscation, backdoors, or suspicious process/network/file operations; the only notable pattern is a bounded eval for cross-realm intrinsic retrieval, which is low risk and expected for this library.
- `webidl2js-wrapper.js` (safe): Cleared by Jev triage; no further analysis needed

## Version ranges

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

- 16.0.1 – 17.1.1 (`>=16.0.1 <=17.1.1`): clean
- 8.7.0 – 11.0.0 (`>=8.7.0 <=11.0.0`): not scanned
- 5.0.0 (`5.0.0`): clean

## Scanned versions

- [17.1.1](https://security.togoder.click/npm/whatwg-url@17.1.1): safe, 2026-10-06T14:25:18.000Z
- [16.0.1](https://security.togoder.click/npm/whatwg-url@16.0.1): safe, 2026-10-06T14:15:00.000Z
- [5.0.0](https://security.togoder.click/npm/whatwg-url@5.0.0): safe, 2026-10-04T16:45:59.000Z

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