Malicious code in npm-wold (npm)
The npm package 'npm-wold' versions 1.1.1 and 1.1.2 contain malicious code that executes during installation. A postinstall script fetches JSON data from a remote attacker-controlled server and dynamically invokes a global function with attacker-supplied arguments, enabling arbitrary code execution on the installer's machine. This behavior is unexpected for the package's advertised functionality as an object-flatten utility.
AI Analysis
Technical Summary
The 'npm-wold' package versions 1.1.1 and 1.1.2 include a postinstall lifecycle script that performs an HTTPS GET request to a hardcoded remote endpoint. The response JSON dictates which global function to invoke and with what argument, allowing the remote server to execute arbitrary code during package installation. This dynamic invocation is implemented via 'fetch' followed by 'globalThis[data.success](data.id)', where both the function name and argument are attacker-controlled. The package's legitimate functionality does not justify such behavior, indicating a staged or injected malicious loader.
Potential Impact
This vulnerability allows an attacker to execute arbitrary code on the system of anyone installing the affected versions of the 'npm-wold' package. The code runs with the privileges of the user performing the installation, potentially leading to system compromise, data theft, or further malware installation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing or updating to versions 1.1.1 and 1.1.2 of 'npm-wold'. Verify package integrity and source before installation. Monitor vendor advisories for updates or official fixes. Consider removing the package if already installed.
Malicious code in npm-wold (npm)
Description
The npm package 'npm-wold' versions 1.1.1 and 1.1.2 contain malicious code that executes during installation. A postinstall script fetches JSON data from a remote attacker-controlled server and dynamically invokes a global function with attacker-supplied arguments, enabling arbitrary code execution on the installer's machine. This behavior is unexpected for the package's advertised functionality as an object-flatten utility.
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 'npm-wold' package versions 1.1.1 and 1.1.2 include a postinstall lifecycle script that performs an HTTPS GET request to a hardcoded remote endpoint. The response JSON dictates which global function to invoke and with what argument, allowing the remote server to execute arbitrary code during package installation. This dynamic invocation is implemented via 'fetch' followed by 'globalThis[data.success](data.id)', where both the function name and argument are attacker-controlled. The package's legitimate functionality does not justify such behavior, indicating a staged or injected malicious loader.
Potential Impact
This vulnerability allows an attacker to execute arbitrary code on the system of anyone installing the affected versions of the 'npm-wold' package. The code runs with the privileges of the user performing the installation, potentially leading to system compromise, data theft, or further malware installation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing or updating to versions 1.1.1 and 1.1.2 of 'npm-wold'. Verify package integrity and source before installation. Monitor vendor advisories for updates or official fixes. Consider removing the package if already installed.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14252
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4c0acd9273b4925241e
Added to database: 08/19/2026, 13:50:56 UTC
Last enriched: 08/19/2026, 14:26:20 UTC
Last updated: 08/19/2026, 15:16:29 UTC
Views: 3
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.