MAL-2026-5845

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/prettier_v1/MAL-2026-5845.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5845
Aliases
  • GHSA-q835-5j9v-22qg
Published
2026-06-15T23:45:43Z
Modified
2026-07-23T07:52:13.475604167Z
Summary
Malicious code in prettier_v1 (npm)
Details

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

Source: amazon-inspector (1ae1d77d25db3af85295c48a446f6c0f2f65252ea2483c45ce81df12c75b1fcb)

Package name 'prettier_v1' closely resembles the widely-used 'prettier' formatter package, a classic typosquat naming pattern. The file lib/mirror.js contains a Buffer.from(..., 'base64').toString('utf8') decode primitive at line 16, which is commonly used to obscure embedded payloads. Tracing of the decoded content and its downstream use (whether it is passed to eval/exec, written to disk, or executed) was not completed, so the actual installer-side impact has not been confirmed. The combination of a typosquat-shaped name plus a base64 decode in a file named 'mirror.js' warrants human review before this package is allowed into installer environments.

Source: ghsa-malware (ea8303f0cea5f415b8a0ba74e959d0501fcb3142ee9320fa50668674c578e4bb)

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": [
        {
            "import_time": "2026-06-15T23:52:17.805341687Z",
            "source": "ghsa-malware",
            "modified_time": "2026-06-15T23:45:50Z",
            "sha256": "ea8303f0cea5f415b8a0ba74e959d0501fcb3142ee9320fa50668674c578e4bb",
            "id": "GHSA-q835-5j9v-22qg",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        },
        {
            "import_time": "2026-07-08T23:27:57.756115605Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-08T23:02:33Z",
            "sha256": "1ae1d77d25db3af85295c48a446f6c0f2f65252ea2483c45ce81df12c75b1fcb",
            "id": "IN-MAL-2026-008989",
            "versions": [
                "3.8.5"
            ]
        },
        {
            "import_time": "2026-07-09T22:02:31.554659758Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-09T21:55:49Z",
            "sha256": "e007377ee649874106f24fb14c3bf26aa17187d815d9bbea64b87e6a02c10edf",
            "id": "IN-MAL-2026-009438",
            "versions": [
                "3.8.4"
            ]
        },
        {
            "import_time": "2026-07-20T13:14:50.014368182Z",
            "source": "reversing-labs",
            "modified_time": "2026-07-20T10:54:38Z",
            "sha256": "250db4bc59de3c3be8f6a8c9eb787cebbf59e29804bd6138b7cda43d287b9855",
            "id": "RLMA-2026-05596",
            "versions": [
                "3.8.4",
                "3.8.5"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / prettier_v1

Package

Affected ranges

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

Affected versions

3.*
3.8.4
3.8.5

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/prettier_v1/MAL-2026-5845.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "55e38173c851dac7e470e095d40ac11164f6b9cbcba04f3d88387e69f5566d70",
            "tlsh": "0b412c8e24f6317055b3a5e8a71ba81bb19b8003321dcec5f64c82915fd203885a7ed9",
            "path": "lib/mirror.js"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]