Malicious code in npm-module-service (npm)
The npm package 'npm-module-service' version 3.7.2 contains malicious code that performs an HTTPS request to a hardcoded IP address and executes attacker-supplied JavaScript code with full Node.js privileges on the host. The module masquerades as a CDN icon helper but actually targets an unauthenticated bare-IP host, enabling remote code execution when the module is imported and used.
AI Analysis
Technical Summary
The default export function 'getPlugin' in 'index.js' of the 'npm-module-service' package (version 3.7.2) performs an HTTPS request to a hardcoded bare-IP endpoint (https://46.183.25.232:45000/icons/107). It retrieves the 'data.credits' field from the response and passes it to a Function constructor that is invoked with Node.js globals (require, module, process, Buffer, Promise) bound in scope. This results in execution of attacker-supplied JavaScript code with full privileges on the host running the package. The module uses variables such as 'iconDomain', 'font-awesome', 'cdnjs', and 'bearrtoken' to present itself as a CDN icon helper, but the actual network target is unrelated and unauthenticated, indicating malicious intent.
Potential Impact
Any consumer that imports and calls this module version executes arbitrary JavaScript code supplied by the attacker with full Node.js privileges on the host system. This can lead to complete compromise of the host environment, including data theft, system manipulation, or further malware deployment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately avoid using version 3.7.2 of 'npm-module-service'. Verify the integrity and source of npm packages before installation. Monitor for updates from the package maintainer or npm security advisories for an official fix. Until a fix is available, do not install or use this package version.
Malicious code in npm-module-service (npm)
Description
The npm package 'npm-module-service' version 3.7.2 contains malicious code that performs an HTTPS request to a hardcoded IP address and executes attacker-supplied JavaScript code with full Node.js privileges on the host. The module masquerades as a CDN icon helper but actually targets an unauthenticated bare-IP host, enabling remote code execution when the module is imported and used.
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 default export function 'getPlugin' in 'index.js' of the 'npm-module-service' package (version 3.7.2) performs an HTTPS request to a hardcoded bare-IP endpoint (https://46.183.25.232:45000/icons/107). It retrieves the 'data.credits' field from the response and passes it to a Function constructor that is invoked with Node.js globals (require, module, process, Buffer, Promise) bound in scope. This results in execution of attacker-supplied JavaScript code with full privileges on the host running the package. The module uses variables such as 'iconDomain', 'font-awesome', 'cdnjs', and 'bearrtoken' to present itself as a CDN icon helper, but the actual network target is unrelated and unauthenticated, indicating malicious intent.
Potential Impact
Any consumer that imports and calls this module version executes arbitrary JavaScript code supplied by the attacker with full Node.js privileges on the host system. This can lead to complete compromise of the host environment, including data theft, system manipulation, or further malware deployment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately avoid using version 3.7.2 of 'npm-module-service'. Verify the integrity and source of npm packages before installation. Monitor for updates from the package maintainer or npm security advisories for an official fix. Until a fix is available, do not install or use this package version.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12404
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735743bf8831d539159c2c
Added to database: 08/05/2026, 15:31:15 UTC
Last enriched: 08/05/2026, 17:14:46 UTC
Last updated: 08/05/2026, 17:14:46 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.