MAL-2026-20558

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/qs-parse-native/MAL-2026-20558.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20558
Published
2026-11-25T06:28:14Z
Modified
2026-11-25T07:00:04Z
Summary
Malicious code in qs-parse-native (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (7e6c49a67bd1c4eed10dd9883ea92ca62712ca4ffef424f70744832dc26eff84)

qs-parse-native advertises itself as a fast querystring parser, but index.js is a pure-JS parse/stringify implementation that additionally require()s a sibling native addon binding.node inside a swallow-all try/catch. The addon serves no parser role (it exports napi_register_module_v1 but no parse function wired to the JS surface); instead it reads a bundled opaque blob.napi_cache, decodes it, writes an executable to /tmp/., chmods it, and launches it as a detached daemon via fork+setsid+execlp. Before dropping, the addon enumerates CI indicators (GITHUB_ACTIONS, GITLAB_CI, TRAVIS, CIRCLECI, JENKINS_URL, BUILDKITE, CODEBUILD_BUILD_ID, APPVEYOR, SEMAPHORE, TEAMCITY_VERSION, BITBUCKET_BUILD_NUMBER, NETLIFY, VERCEL, SCREWDRIVER), container runtimes (/proc/1/cgroup entries for docker/containerd/kubepod/podman, dockerinit in /proc/1/cmdline, SANDBOX env), and debugger presence (TracerPid in /proc/self/status, /proc/self/maps) and bails out if any are present, so execution is gated to real developer and production hosts. The staging path and the decoded payload are both opaque, and none of this behavior is required by, or related to, the advertised querystring API. The dropper fires automatically on every require('qs-parse-native').

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-023115",
            "import_time":  "2026-11-25T06:44:07.502200110Z",
            "modified_time":  "2026-11-25T06:28:14Z",
            "sha256":  "7e6c49a67bd1c4eed10dd9883ea92ca62712ca4ffef424f70744832dc26eff84",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / qs-parse-native

Package

Name
qs-parse-native
View open source insights on deps.dev
Purl
pkg:npm/qs-parse-native

Affected ranges

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "binding.node",
            "sha256":  "d30b584c0ce49d42d4b8c32c2a4bf4aeaf7567ec987ffe1bc0fd20ac6fafdf84",
            "tlsh":  "9372854bd2a0dd3ec4d86231598b527253a2d070ef30172f0f54a2fb2d973586e7ae52"
        },
        {
            "path":  "index.js",
            "sha256":  "ac068a414af02036410d5bd3d781ef76f9a1642b82bd9d7e72fe40ecb87b9af3",
            "tlsh":  "6cf08b5328d070c51dbbae2882bfb46e70fd2b1608bdd9606c6952f21f201320375cb4"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "qs-parse-native-1.0.0.tgz",
            "hashes":  {
                "sha1":  "a6576ba0738922aaae5989c35f68bc0af41311b8",
                "sha512_sri":  "sha512-QuvX+jvrdZw+dxoYaXmsno229QayVC/CLIfDx0yfZ7zAT+EdRHWE2GzwlNvLw8U5Eb8Z0NzqeFeEfU7jtcL1eg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/qs-parse-native/MAL-2026-20558.json"