Malicious code in hubert-react-query (npm)
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.
AI Analysis
Technical Summary
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.
Mitigation Recommendations
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.
Malicious code in hubert-react-query (npm)
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
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.