Malicious code in react-native-ui-message (npm)
The npm package react-native-ui-message version 1.0.0 contains malicious code executed during installation. It collects the host's MAC address and other environment details, sends them to a remote server, then downloads and executes arbitrary JavaScript code from that server without proper integrity verification. This behavior is unexpected for a React Native UI component and allows remote code execution on the installer's machine.
AI Analysis
Technical Summary
The [email protected] package declares a postinstall hook that runs a script enumerating network interfaces to obtain the MAC address, which it sends along with OS and path information to a remote server. It then performs a GET request to fetch JavaScript code from the server and executes it using Node's vm.runInContext with access to require, process, and Buffer, enabling arbitrary code execution. The package's integrity check is ineffective, comparing a constant string against itself, thus not verifying the fetched code. This introduces a malicious remote code execution vector during package installation.
Potential Impact
An attacker controlling the remote server can execute arbitrary JavaScript code on the machine installing the package, potentially leading to full system compromise, data theft, or further malware installation. The malicious behavior occurs silently during installation, making it difficult to detect. This compromises the trustworthiness of the package and any projects depending on it.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing [email protected]. Verify package authenticity before installation and consider using trusted alternatives. Monitor for updates or advisories from the package maintainers or npm registry regarding remediation.
Malicious code in react-native-ui-message (npm)
Description
The npm package react-native-ui-message version 1.0.0 contains malicious code executed during installation. It collects the host's MAC address and other environment details, sends them to a remote server, then downloads and executes arbitrary JavaScript code from that server without proper integrity verification. This behavior is unexpected for a React Native UI component and allows remote code execution on the installer's machine.
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 [email protected] package declares a postinstall hook that runs a script enumerating network interfaces to obtain the MAC address, which it sends along with OS and path information to a remote server. It then performs a GET request to fetch JavaScript code from the server and executes it using Node's vm.runInContext with access to require, process, and Buffer, enabling arbitrary code execution. The package's integrity check is ineffective, comparing a constant string against itself, thus not verifying the fetched code. This introduces a malicious remote code execution vector during package installation.
Potential Impact
An attacker controlling the remote server can execute arbitrary JavaScript code on the machine installing the package, potentially leading to full system compromise, data theft, or further malware installation. The malicious behavior occurs silently during installation, making it difficult to detect. This compromises the trustworthiness of the package and any projects depending on it.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing [email protected]. Verify package authenticity before installation and consider using trusted alternatives. Monitor for updates or advisories from the package maintainers or npm registry regarding remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12424
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735744bf8831d539159ca5
Added to database: 08/05/2026, 15:31:16 UTC
Last enriched: 08/05/2026, 17:20:45 UTC
Last updated: 08/05/2026, 17:20:45 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.