MAL-2026-6198

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/new-ecro-1/MAL-2026-6198.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6198
Aliases
  • GHSA-j799-pq44-wq6g
Published
2026-06-19T05:20:04Z
Modified
2026-07-08T21:46:51Z
Summary
Malicious code in new-ecro-1 (npm)
Details

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

Source: amazon-inspector (0c4e172aa83f2b8742fb014ea649490c87815573cab692ea74eb402ee23f935c)

Package new-ecro-1 impersonates the legitimate big.js library by shipping its source verbatim (banner, license, and homepage pointing at MikeMcl/big.js). Inside the load-time IIFE in both big.js and big.mjs at line 606, an injected block silently executes const doc = require("parket-slot"); doc.from_str().then(e => {}).catch(e => {}), wrapped in a try/catch that swallows all errors. The parket-slot package is not declared in this manifest's dependencies (which instead lists new-solt-1), so the require resolves to whatever loader-controlled package happens to be present in the surrounding install tree, executing its from_str() on import. The combination of name-impersonation, undeclared cross-package require, and silent error suppression is a loader stub for attacker-controlled code that runs the moment any consumer imports this module.

Source: ghsa-malware (b9011c16811ab0ba9c06a452324ca55408e47e25a8a3d40d74c1343fb8aaf2d8)

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": "IN-MAL-2026-007060",
            "import_time": "2026-06-19T07:17:16.909021254Z",
            "modified_time": "2026-06-19T05:20:04Z",
            "sha256": "01b0b55fd906ade779ab708144b0becba338debc03c56a2fe0b6468b1d12808e",
            "source": "amazon-inspector",
            "versions": [
                "0.3.9"
            ]
        },
        {
            "id": "IN-MAL-2026-007061",
            "import_time": "2026-06-19T07:17:16.967727952Z",
            "modified_time": "2026-06-19T05:20:05Z",
            "sha256": "0c4e172aa83f2b8742fb014ea649490c87815573cab692ea74eb402ee23f935c",
            "source": "amazon-inspector",
            "versions": [
                "0.1.9"
            ]
        },
        {
            "id": "GHSA-j799-pq44-wq6g",
            "import_time": "2026-06-23T13:16:55.912876474Z",
            "modified_time": "2026-06-23T12:15:37Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "b9011c16811ab0ba9c06a452324ca55408e47e25a8a3d40d74c1343fb8aaf2d8",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-008584",
            "import_time": "2026-07-08T21:27:48.50123907Z",
            "modified_time": "2026-07-08T20:32:10Z",
            "sha256": "c832d372e16d10447c8e6cf50c1623ab0fdb50432a584342a32009153e7a0097",
            "source": "amazon-inspector",
            "versions": [
                "0.2.9"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / new-ecro-1

Package

Affected ranges

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

Affected versions

0.*
0.1.9
0.2.9
0.3.9

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "big.js",
            "sha256": "eb6ce18afdacb4c6b3eb97521184a1330adcab077dcb12f5342ed2ee3a49447c",
            "tlsh": "ebc2658c3ac67579593363788f465088eb38525712c8b286b4ae63b46f78cb107b5fdc"
        }
    ],
    "package_integrity": [
        {
            "filename": "new-ecro-1-0.3.9.tgz",
            "hashes": {
                "sha1": "fcb596e099fc0856a0217a3bf6554aba25824ea0",
                "sha512_sri": "sha512-1vRDxfgRZyrpvnERul7HaYJcTb/HW4m5Yz8r6HsroDzvlN4SNN8TE+jfhdrBO6JjzdfS840tSoFbj81X4TFw1w=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/new-ecro-1/MAL-2026-6198.json"