Malicious code in @syncraft-labs/react (npm)
The npm package @syncraft-labs/react version 0.4.1 contains malicious code embedded in its ESM build artifact. This code is heavily obfuscated and fetches executable JavaScript from a mutable on-chain Ethereum contract, enabling remote code execution in Node.js server-side rendering contexts and browser bundles. The malicious payload is absent from other build artifacts and source maps, indicating post-build tampering. This pattern, known as EtherHiding, allows attackers to dynamically deliver arbitrary code to any application using the compromised package.
AI Analysis
Technical Summary
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.
Malicious code in @syncraft-labs/react (npm)
Description
The npm package @syncraft-labs/react version 0.4.1 contains malicious code embedded in its ESM build artifact. This code is heavily obfuscated and fetches executable JavaScript from a mutable on-chain Ethereum contract, enabling remote code execution in Node.js server-side rendering contexts and browser bundles. The malicious payload is absent from other build artifacts and source maps, indicating post-build tampering. This pattern, known as EtherHiding, allows attackers to dynamically deliver arbitrary code to any application using the compromised package.
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 @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.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14368
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a8af9a3acd9273b49f32eed
Added to database: 08/23/2026, 13:46:11 UTC
Last enriched: 08/23/2026, 13:49:38 UTC
Last updated: 08/24/2026, 02:34:35 UTC
Views: 16
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.