Skip to main content

Malicious code in react-dropzone-v4 (npm)

0
Medium
Published: 10/11/2026 (10/11/2026, 07:35:19 UTC)
Source: GCVE Database
Product: react-dropzone-v4

Description

The npm package 'react-dropzone-v4' version 99.0.0 is a malicious package that mimics the popular 'react-dropzone' library. It contains a preinstall script that executes automatically during installation, which performs DNS and HTTP requests to a third-party domain, transmitting the installer's hostname without consent. The package provides no legitimate functionality and appears designed for dependency confusion attacks to capture host information.

Affected software

npmghsa
react-dropzone-v4
Affected versions
=99.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/11/2026, 21:42:47 UTC

Technical Analysis

The 'react-dropzone-v4' package at version 99.0.0 is identified as malicious. Its package.json includes a preinstall lifecycle script that runs automatically on npm install. This script performs an nslookup query and an HTTP GET request to a subdomain of canarytokens.com, sending the hostname of the installing machine to an external server in plaintext. The package name closely resembles the legitimate 'react-dropzone' library and uses an inflated version number to increase the chance of being resolved over an internal package of the same name, a common tactic in dependency confusion attacks. The package does not provide any legitimate functionality and solely acts as an out-of-band beacon to identify hosts that installed it.

Potential Impact

The impact is the unauthorized transmission of the installer's hostname to an external third-party domain via DNS and plaintext HTTP during installation. This can lead to information leakage about internal hostnames and potentially aid attackers in reconnaissance or further targeted attacks. No direct code execution or further malicious payloads are described.

Mitigation Recommendations

No official patch or remediation is indicated. Users should avoid installing the 'react-dropzone-v4' package, especially version 99.0.0, as it is malicious and provides no legitimate functionality. Verify package names carefully to avoid dependency confusion attacks. Use trusted package sources and consider implementing package allowlists or integrity checks to prevent installation of malicious packages.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-17758
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6acc00a32cdf04f656fecb01

Added to database: 10/11/2026, 21:33:23 UTC

Last enriched: 10/11/2026, 21:42:47 UTC

Last updated: 10/11/2026, 21:42:47 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses