Summary
Togoder Security scanned the npm package whatwg-url@17.1.1 on Oct 6, 2026. An AI review of 16 source files produced 1 low severity finding. No malicious behavior, install-time payloads, credential theft or exfiltration were identified.
Findings 1
Dynamic code execution
NPS-6D3CE66A545E
The code uses globalObject.eval("(async function* () {})..." ) inside a try/catch to obtain the %AsyncIteratorPrototype% intrinsic. This is a functional necessity, not an obfuscated payload, and the evaluated string is a fixed constant with no external input.
Files reviewed
| File | Verdict | What the reviewer saw |
|---|---|---|
| index.js | safe | No malicious patterns detected; the file is a standard module entry point that exports URL parsing utilities and installs WebIDL wrappers without any suspicious behavior. |
| 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 | No malicious patterns detected; the code is a standard WebIDL-based URL implementation for a web-platform polyfill. |
| lib/URLSearchParams-impl.js | safe | Cleared by Jev triage; no further analysis needed |
| lib/URLSearchParams.js | safe | No malicious patterns detected; this is standard generated WebIDL binding code for URLSearchParams with no network, filesystem, process, or obfuscation activity. |
| 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-miscellaneous.js | safe | Cleared by Jev triage; no further analysis needed |
| lib/url-state-machine.js | safe | No malicious patterns detected; the file is a legitimate WHATWG URL parser implementation with no data exfiltration, credential harvesting, dynamic code execution, or other suspicious behavior. |
| lib/url-string-validator.js | safe | Cleared by Jev triage; no further analysis needed |
| lib/urlencoded.js | safe | Cleared by Jev triage; no further analysis needed |
| lib/utils.js | safe | No malicious patterns detected; the only dynamic evaluation is a fixed literal needed to retrieve the AsyncIterator prototype, and there is no network, filesystem, credential, process, or exfiltration behavior. |
| webidl2js-wrapper.js | safe | Cleared by Jev triage; no further analysis needed |
Affected 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.
| Versions | Verdict | Count | Range | Top findings |
|---|---|---|---|---|
| 16.0.1 – 17.1.1 | No issues | 2 | >=16.0.1 <=17.1.1 | |
| 8.7.0 – 11.0.0 | Not scanned | 2 | >=8.7.0 <=11.0.0 | |
| 5.0.0 | No issues | 1 | 5.0.0 |
Full list, including published versions not scanned yet: version ranges API.
Scanned versions of whatwg-url
Frequently asked questions
Is whatwg-url safe to use?
Our AI source review of whatwg-url@17.1.1 found no malicious code: no install-time payloads, credential theft, exfiltration, obfuscated loaders or backdoors.
Does whatwg-url contain malware?
No malware was identified in whatwg-url@17.1.1 when Togoder Security scanned it on Oct 6, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.
How was whatwg-url checked?
Togoder Security downloaded the published npm package and had an AI model read its 16 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.
How do I scan whatwg-url together with the rest of my dependencies?
Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in whatwg-url@17.1.1, cost nothing.