Skip to content
Heist/ feed
Unrated

Malicious code in reactjs-risk (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0e58c82916c5199ef9e73a5d70f91d120312151eb5c28090d8bbf6dbf4117543) The package's preinstall lifecycle script collects host identity metadata from the installer machine — os.hostname(), the output of `whoami`/os.userInfo().username, and os.platform() — hex-encodes the values, and issues a DNS A-record lookup for `.768hgkqn53abdemu8ikzkel4g.canarytokens.com`, causing the installer's hostname, username, and platform to be transmitted to the canarytoken operator on every `npm install`. The dns module is loaded via string concatenation (`'d'+'n'+'s'`) and the `whoami` command is similarly split, indicating deliberate obfuscation of the module and command names. The package's declared main entry is an empty stub with no library functionality, so the preinstall beacon is the package's only behavior. Installing this package auto-executes an unauthenticated exfiltration of installer identity metadata to a third-party DNS endpoint the installer did not opt into. ## Source: ossf-package-analysis (a32a318956967c92b753750e0b607e48db7eef07d05f25c2b687f3b9612f806e) The OpenSSF Package Analysis project identified 'reactjs-risk' @ 99.17.1 (npm) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity. - The package executes one or more commands associated with malicious behavior.

Announced Source revision 1
Original source ↗

MAL-2026-17339

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-17339

reactjs-risk

Source reference: /affected/0/package/name

Affected versions
99.17.1

Source reference: /affected/0/versions

99.17.2

Source reference: /affected/0/versions

99.9.9

Source reference: /affected/0/versions

99.17.4

Source reference: /affected/0/versions

99.12.0

Source reference: /affected/0/versions

99.17.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": "reactjs-risk",
      "purl": "pkg:npm/reactjs-risk",
      "ecosystem": "npm"
    },
    "versions": [
      "99.17.1",
      "99.17.2",
      "99.9.9",
      "99.17.4",
      "99.12.0",
      "99.17.0"
    ],
    "database_specific": {
      "cwes": [
        {
          "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",
          "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",
          "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/reactjs-risk/MAL-2026-17339.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "poc.js",
            "tlsh": "c201d31317b162a4416119c1db9b84245053f3533512d1e87a9ec3465fd75904a733f5",
            "sha256": "5292bd901e13ce268893b18ff670d10b3dcc305ca08d0ce95a6dfe14ea5da4a6"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "8c24f8798f3a55696d4bed5bbe5e540b6381a4fb",
              "sha512_sri": "sha512-K40VN3M1DDdwO8Wtc3zfVTIPqK4RZPf+QE/q33ExGcl2PCybyv4xuInj1EIPyl43SDDpDhYU7I881ZK+Mmh7/Q=="
            },
            "filename": "reactjs-risk-99.17.2.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

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