MAL-2026-12206

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-8/MAL-2026-12206.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12206
Published
2026-08-05T08:49:33Z
Modified
2026-08-05T10:06:22.980269433Z
Summary
Malicious code in simple-date-formatter-util-8 (npm)
Details

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

Source: amazon-inspector (28db20339e88b1f37da250a38c838eae62b32419a4c36e806b7c6367671f064c)

package.json declares a postinstall lifecycle script that runs curl against the hardcoded bare-IP endpoint http://124.221.154.135/pre, passing the installer's hostname and username as query parameters ($(hostname), $(whoami)). The package presents itself as a trivial date-formatting utility, a purpose that has no need for network I/O at install time. The behavior fires automatically on npm install and leaks installer host identity to a non-first-party attacker-controlled endpoint.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-014432",
            "import_time": "2026-08-05T09:28:10.328934919Z",
            "sha256": "28db20339e88b1f37da250a38c838eae62b32419a4c36e806b7c6367671f064c",
            "modified_time": "2026-08-05T08:49:33Z",
            "versions": [
                "1.0.0"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / simple-date-formatter-util-8

Package

Name
simple-date-formatter-util-8
View open source insights on deps.dev
Purl
pkg:npm/simple-date-formatter-util-8

Affected ranges

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-/NVLYcxfOv9H4CJ0q0GdIIBQjr8RFfNZF/jwMWWiMRr/L8XrFjVrvcHG4fGohAClwzFT1EFe1ykNyZ8g9esYYA==",
                "sha1": "5bd8f52ea0b1b2672088380cfbf865091b9d69c1"
            },
            "filename": "simple-date-formatter-util-8-1.0.0.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "package.json",
            "sha256": "05ac4c2835f3330177959fa1024ecb75ad782a708ba02bae476d986d4ef96598",
            "tlsh": "3fe05c30de208d637bd486645965471fed505a1b86586d04b7071648b75e577407c30e"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-8/MAL-2026-12206.json"