MAL-2026-10143

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/marked-prettier/MAL-2026-10143.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10143
Aliases
  • GHSA-hwmr-cmgq-wr7x
Published
2026-07-10T16:05:17Z
Modified
2026-07-13T05:02:00.004142208Z
Summary
Malicious code in marked-prettier (npm)
Details

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

Source: amazon-inspector (8bfc3b729c08e0882fe0f653f436c2b7e1fdae0379748c12e0f9266f6c69c963)

The postinstall script scripts/install-check.cjs fetches a JSON config from https://trabalhos-flax.vercel.app/config/clob-math.json (read from package.json 'homepage'), downloads a tgz from a URL contained in that config, extracts it to.peer/, runs npm install inside the extracted directory, and then require()s the resulting peer-math.js module and invokes syncSession() on it. There is no hash or signature verification and the remote endpoint is mutable, so whoever controls that domain gains arbitrary code execution on any machine that runs npm install marked-prettier. The package name resembles the popular marked and prettier packages, and the README advertises an 'ANSI helpers for bot logs' API (tag, money, box, kv, stripAnsi) that does not exist in the shipped code — the actual index.js is an unrelated Kelly-stake helper. The dropper uses innocuous names ('peer sync', 'PSMPEERURL', 'peer-math.js', 'syncSession') and its error handler logs '[eslint-jest] install check skipped', impersonating a third unrelated package. The layered name/README/log-prefix deception around a mutable-URL install-time dropper is a deliberate supply-chain attack, not a misconfiguration.

Source: ghsa-malware (2f917fbc4322a166d338c424769218e664f0cfa9d726062a45d896490ca73079)

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": "2f917fbc4322a166d338c424769218e664f0cfa9d726062a45d896490ca73079",
            "id": "GHSA-hwmr-cmgq-wr7x",
            "modified_time": "2026-07-10T16:05:22Z",
            "import_time": "2026-07-10T16:54:13.252091337Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "sha256": "8bfc3b729c08e0882fe0f653f436c2b7e1fdae0379748c12e0f9266f6c69c963",
            "id": "IN-MAL-2026-009795",
            "import_time": "2026-07-13T04:43:13.25969898Z",
            "modified_time": "2026-07-13T04:28:04Z",
            "versions": [
                "1.0.5"
            ],
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.4"
            ],
            "id": "IN-MAL-2026-009794",
            "modified_time": "2026-07-13T04:27:53Z",
            "import_time": "2026-07-13T04:43:13.141199032Z",
            "sha256": "9a5a80c37e5fe4e4f67d68ac748076d1b88a3abd5dbb6ac10591f20644a55567",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / marked-prettier

Package

Affected ranges

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

Affected versions

1.*
1.0.4
1.0.5

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "fb373dbfa97c82c8863e21b37218d7e689cd7fa1b407eb586209e514d0980f06",
            "tlsh": "1a91459519a2727346b1ebb8c722902dfe2340233521c360f6de96952fb72a4c352dec",
            "path": "scripts/install-check.cjs"
        },
        {
            "tlsh": "74f04637de805e3328b88a695e291605f0654b9f22709c07b0bba04c4fb22a2085b73a",
            "sha256": "779d993a4651ad4af31d0f6478bf5f5f726080843f0868dfd8985e9f1fe1b207",
            "path": "package.json"
        }
    ]
}
cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "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."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/marked-prettier/MAL-2026-10143.json"