MAL-2026-6571: Malicious code in react-wp-viewer (npm)
The react-wp-viewer npm package versions 0.2.4, 0.2.15, and 0.2.99 contain malicious code designed as a dependency-confusion proof-of-concept. During installation, a postinstall hook makes an HTTP request to an attacker-controlled IP address, sending information about the package and the installer's environment. This behavior can disclose sensitive reconnaissance data such as the installer's source IP and network position. No credentials are directly stolen, but the package name is squatted to intercept internal package resolution, enabling attacker reconnaissance.
AI Analysis
Technical Summary
The react-wp-viewer package in specified versions is a dependency-confusion malicious package. Its postinstall script performs an HTTP GET request to a hardcoded IP address, transmitting the package name, version, and a fixed nonce. This request leaks the installer's source IP and network environment information to an attacker-controlled server over unencrypted HTTP. The package self-identifies as a dependency-confusion proof-of-concept, indicating it is squatting on a package name to capture internal environment data when resolved in place of a private package. No credential theft occurs, but the reconnaissance data gathered can aid attackers in further exploitation.
Potential Impact
The impact is limited to information disclosure of the installer's network environment, including source IP and hostname-derived network position. This reconnaissance data can assist attackers in mapping internal environments and confirming the presence of internal packages with the same name. No direct credential theft or code execution beyond the postinstall hook is reported.
Mitigation Recommendations
No official patch or fix is currently documented. Users should avoid installing the affected versions (=0.2.4, =0.2.15, =0.2.99) of react-wp-viewer from the public npm registry. Verify package provenance before installation and consider using scoped or private package namespaces to prevent dependency confusion. Monitor for updates or advisories from the package maintainers or npm regarding remediation.
MAL-2026-6571: Malicious code in react-wp-viewer (npm)
Description
The react-wp-viewer npm package versions 0.2.4, 0.2.15, and 0.2.99 contain malicious code designed as a dependency-confusion proof-of-concept. During installation, a postinstall hook makes an HTTP request to an attacker-controlled IP address, sending information about the package and the installer's environment. This behavior can disclose sensitive reconnaissance data such as the installer's source IP and network position. No credentials are directly stolen, but the package name is squatted to intercept internal package resolution, enabling attacker reconnaissance.
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 react-wp-viewer package in specified versions is a dependency-confusion malicious package. Its postinstall script performs an HTTP GET request to a hardcoded IP address, transmitting the package name, version, and a fixed nonce. This request leaks the installer's source IP and network environment information to an attacker-controlled server over unencrypted HTTP. The package self-identifies as a dependency-confusion proof-of-concept, indicating it is squatting on a package name to capture internal environment data when resolved in place of a private package. No credential theft occurs, but the reconnaissance data gathered can aid attackers in further exploitation.
Potential Impact
The impact is limited to information disclosure of the installer's network environment, including source IP and hostname-derived network position. This reconnaissance data can assist attackers in mapping internal environments and confirming the presence of internal packages with the same name. No direct credential theft or code execution beyond the postinstall hook is reported.
Mitigation Recommendations
No official patch or fix is currently documented. Users should avoid installing the affected versions (=0.2.4, =0.2.15, =0.2.99) of react-wp-viewer from the public npm registry. Verify package provenance before installation and consider using scoped or private package namespaces to prevent dependency confusion. Monitor for updates or advisories from the package maintainers or npm regarding remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6571
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a42ed7827e9c797199395c1
Added to database: 06/29/2026, 22:11:04 UTC
Last enriched: 06/29/2026, 22:41:09 UTC
Last updated: 06/30/2026, 00:53:28 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.