cvelo
P2 · HighMalware

Malicious code in demo-pkg-e2e (npm)

  • GHSA-cj75-3hc3-3qv7

Description

demo-pkg-e2e 1.0.0 contains only a stub index.js, but declares its single dependency, demo-pkg-core, as a tarball URL on a host controlled by the publisher (hxxps://pkg[.]sl4x0[.]xyz/t/ea414b39aa1b293bd85d9ca62823a501.tgz) instead of a registry version. The dependency's code is therefore not hosted on npm and can be changed at any time. During `npm install`, npm downloads that tarball (demo-pkg-core 1.0.0, last modified 2026-12-03 15:10 UTC) and runs its postinstall script (`node i.js`), which calls dns.resolve4 and sends a DNS query to a subdomain of oob[.]sl4x0[.]xyz encoding the installing machine's user name, host name, working directory name and a timestamp (for example <user>.<host>.<dir>.<timestamp>.oob[.]sl4x0[.]xyz under a demopkg prefix). This confirms to the operator that code ran on that machine and identifies the host. The publisher's email domain sl4x0[.]xyz was used by earlier dependency-confusion packages such as ftapi-core (MAL-2026-2414), oc-navbar-module-client (MAL-2026-2417) and tombac-chronos (MAL-2026-2418). --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/eb988a58bbbd0ffc5ea4d734c2479a5a6dd86cce/osv/malicious/npm/demo-pkg-e2e/MAL-2026-21130.json))

Text from the GitHub Advisory record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • demo-pkg-e2enpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.