MAL-2026-20557
Malicious code in qs-native-parse (npm)
- CVSS
- —
- EPSS
- —
- Published
- 2026-11-25
- Age
- 4d old
- Modified
- 2026-11-25
- Product
- qs-native-parse
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (9d7a59ef9bedd72e64eb405d63a5037689bea25b38544a988f49ee1953d2d633) qs-native-parse@1.0.1 presents itself as a pure-JavaScript query-string parser (package.json main=index.js, keywords 'querystring,qs,parse,stringify,url') but silently bundles two prebuilt native addons (native.napi.node for Linux, native_win.node for Windows) and a 3.7MB opaque sibling file named.napi_cache. index.js loads the platform-appropriate.node binary on module load inside a try/catch that swallows any error, so failures are hidden from the caller. The native addons contain format strings and syscalls consistent with staging and executing a decrypted JavaScript payload from the.napi_cache blob (strings '%s/.napi_cache', '%s.nc%lu.js', '/tmp/.%u', 'node "%s"'; imports fork, setsid, chmod, execlp) — i.e., the addon writes a derived.js file to /tmp and spawns node on it outside the Node module loader, bypassing any JS-level inspection. Both addons additionally gate execution on anti-analysis checks: the Linux variant enumerates CI environment variables (GITHUB_ACTIONS, GITLAB_CI, TRAVIS, CIRCLECI, JENKINS_URL, BUILDKITE, C
Sources
- OSV · first seen 4d ago · CC-BY 4.0