---
id: "GHSA-cqf2-3c3q-p639"
kind: "package"
aliases: ["GHSA-cqf2-3c3q-p639", "MAL-2026-17758"]
title: "Malicious code in react-dropzone-v4 (npm)"
severity: "critical"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "react-dropzone-v4", "fixed": [], "affected": "all versions", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["malicious", "package"]
not_affected_if: []
published_at: "2026-10-11T07:35:19+00:00"
first_seen_at: "2026-10-26T20:51:53+00:00"
updated_at: "2026-10-26T21:06:18+00:00"
sources: [{"source": "osv-malicious", "url": "https://osv.dev/vulnerability/MAL-2026-17758", "first_seen_at": "2026-10-26T20:51:53+00:00"}]
---

# Malicious code in react-dropzone-v4 (npm)

## Affected

- npm:react-dropzone-v4 affected all versions fixed ?

## Timeline

- 2026-10-26T20:51:53+00:00 osv-malicious https://osv.dev/vulnerability/MAL-2026-17758

## From the sources

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

## Source: amazon-inspector (28267e7286151b52836170e94617afcb3c49d17424f7b7ea9fab480c6e008c7c)
The package's package.json declares a preinstall lifecycle script that runs automatically on npm install. The script performs an nslookup of $(hostname).hzbvy3cmgred066nig6n3ux0y.canarytokens.com and a curl GET to http://hzbvy3cmgred066nig6n3ux0y.canarytokens.com/$(hostname), causing the installer's hostname to be transmitted to a third-party canarytokens.com subdomain via DNS and plaintext HTTP without consent. The package name mimics the popular react-dropzone library and uses an inflated version number (99.0.0) characteristic of dependency-confusion attacks that aim to win resolution against an internal package of the same name. The package provides no legitimate functionality; its only install-time effect is the out-of-band beacon identifying hosts that resolved and installed it.

## Source: ghsa-malware (cdc9b01b8657f654dde083e1258d59eb9fc8585bd850322180c79fb22f90aa18)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

## Source: ossf-package-analysis (a198afa2f10e287b1c9d5f196f5ca43288ccf306b9dc753a4d04221c3c91f76b)
The OpenSSF Package Analysis project identified 'react-dropzone-v4' @ 99.0.0 (npm) as malicious.

It is considered malicious because:

- The package communicates with a domain associated with malicious activity.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
