Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in hubert-react-query (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 09:16:08 UTC)
Source: GCVE Database
Product: hubert-react-query

Description

The npm package hubert-react-query version 20.6.8 contains malicious code that executes automatically upon import. It reconstructs attacker-controlled Cloudflare Workers hostnames at runtime to download a platform-specific native binary, which it writes to temporary directories, sets executable permissions, and executes detached from the parent process. This binary is unrelated to the package's advertised functionality and effectively compromises any system running the package. Immediate removal and secret/key rotation are strongly advised.

Affected software

npmghsa
hubert-react-query
Affected versions
=20.6.8

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: 08/06/2026, 19:28:38 UTC

Technical Analysis

The hubert-react-query npm package (version 20.6.8) includes malicious code in its main entry point (index.js) that unconditionally requires a setup.js script. This script dynamically reconstructs Cloudflare Workers hostnames and uses a DNS-TXT base64 fallback channel to download a platform-specific native binary via HTTPS. The binary is saved to temporary system directories with disguised filenames, permissioned as executable, and launched detached from the parent process. The package masquerades this behavior as telemetry but actually delivers an opaque compiled binary unrelated to react-query functionality. Execution occurs simply by requiring the module, leading to full system compromise.

Potential Impact

Any system with this package installed or running is considered fully compromised. The malicious binary grants attackers full control over the affected computer. All secrets and keys stored on the compromised system should be considered exposed and must be rotated from a separate, secure device. Removing the package alone does not guarantee removal of all malicious components or persistence mechanisms.

Defensive Guidance

Remove the hubert-react-query package version 20.6.8 immediately from all affected systems. Rotate all secrets, credentials, and keys that were stored or accessible on compromised machines from a secure environment. Because the malicious binary executes automatically on import and may establish persistence, assume full compromise and conduct a thorough incident response. No official patch or fix is available; remediation relies on removal and secret rotation.

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-12181
Osv Schema Version
1.7.4
Aliases
["GHSA-2774-hmc5-fgrx"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a74cfadbf8831d5391b22da

Added to database: 08/06/2026, 18:17:17 UTC

Last enriched: 08/06/2026, 19:28:38 UTC

Last updated: 08/06/2026, 19:28:38 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