Skip to main content

Malicious code in @syncraft-labs/react (npm)

0
Critical
Published: 08/23/2026 (08/23/2026, 03:15:14 UTC)
Source: GCVE Database
Product: @syncraft-labs/react

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (c3986bd05347035d9263c22b871840f19dc42187d3e1719311cb67c6e1ef5cb9) dist/index.js (the ESM entry resolved by default by modern bundlers such as Vite, Next.js, and Webpack) contains a heavily obfuscated block using obfuscator.io-style identifiers, a rotated ~300-entry string array, and a decoder wrapper injected inside the useEffect body of the useSync hook. The block captures globalThis.r=require and globalThis.m=module, then uses http/https and zlib (createInflate/createBrotli) to fetch data from Ethereum RPC endpoints (h.drpc.org, 1rpc.io/eth), Blockscout, and Etherscan for a hardcoded contract address (0xa322E5f3...), reconstructs code from the on-chain bytes, and executes it with require access. This is the EtherHiding pattern: the on-chain contract is mutable, so operators of that contract can deliver arbitrary JavaScript to any consumer that renders a component using useSync, achieving remote code execution in Node build/SSR contexts and in the browser bundle of downstream applications. The obfuscated blob is absent from dist/index.cjs and from the TypeScript sources referenced by dist/index.js.map, indicating the ESM artifact was tampered after build. ## Source: ghsa-malware (5978be426de3faf554ce3f69eaf8cce533ef963169bb5821d0f6641605cf2426) 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.

Affected software

npmghsa
@syncraft-labs/react
Affected versions
=0.4.1

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/23/2026, 13:49:38 UTC

Technical Analysis

The @syncraft-labs/react package version 0.4.1 includes a malicious obfuscated code block in its ESM entry file (dist/index.js). This block uses obfuscation techniques and a large string array decoder to fetch code from Ethereum RPC endpoints and on-chain contract data. The contract is mutable, allowing operators to deliver arbitrary JavaScript code dynamically. The code executes with require access, enabling remote code execution in Node.js build or SSR environments and in browser bundles of downstream applications. The malicious code is not present in the CommonJS build or TypeScript source maps, indicating the ESM artifact was tampered with after the build process.

Potential Impact

This vulnerability enables remote code execution in environments that consume the ESM build of the package, including Node.js server-side rendering and browser bundles. Attackers controlling the on-chain contract can deliver arbitrary JavaScript code to any application using the compromised package, potentially leading to full compromise of the application environment and downstream consumers.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid using version 0.4.1 of @syncraft-labs/react and verify the integrity of package artifacts before use. Monitor vendor advisories or trusted sources for updates or official fixes. Given the nature of the attack, replacing the package with a clean, verified version or alternative is recommended until a fix is available.

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-14368
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a8af9a3acd9273b49f32eed

Added to database: 08/23/2026, 13:46:11 UTC

Last enriched: 08/23/2026, 13:49:38 UTC

Last updated: 10/02/2026, 14:14:32 UTC

Views: 48

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