{"id":"MAL-2026-20557","aliases":[],"title":"Malicious code in qs-native-parse (npm)","originalDescription":" --- _-= 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","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://www.npmjs.com/package/qs-native-parse/v/1.0.0","type":"package"},{"url":"https://www.npmjs.com/package/qs-native-parse/v/1.0.1","type":"package"}],"sources":[{"name":"osv","at":"2026-11-25T07:39:58.570Z","url":"https://osv.dev/vulnerability/MAL-2026-20557","license":"CC-BY 4.0","firstSeenAt":"2026-11-25T07:06:38.256Z"}],"firstSeenAt":"2026-11-25T07:06:38.256Z","publishedAt":"2026-11-25T06:28:00.000Z","modifiedAt":"2026-11-25T07:00:04.050Z"}