Malicious code in type-unique (npm)
The npm package type-unique version 3.1.3 is malicious. It impersonates the pino logger but executes a detached child process that fetches and runs remote JavaScript code with full Node.js privileges. This remote code execution allows an attacker to run arbitrary code on any system that loads this package. The malicious payload is fetched from unauthenticated third-party JSON hosting services controlled by the attacker. Systems with this package installed should be considered fully compromised, and secrets should be rotated. Removal of the package alone may not eliminate all malicious artifacts.
AI Analysis
Technical Summary
The npm package [email protected] masquerades as the pino logger but, upon require(), spawns a detached Node.js child process that fetches JSON payloads from attacker-controlled third-party hosting services. It extracts a 'cookie' field from the JSON and executes it using the Function constructor, granting full Node.js execution capabilities including access to require. Additional command and control URLs are obfuscated as base64-encoded constants within the package source. The fetched payload is unpinned and unauthenticated, enabling arbitrary remote code execution on any machine that loads this package version. This results in complete compromise of the host system.
Potential Impact
Any system that installs or runs [email protected] is fully compromised due to arbitrary remote code execution with full Node.js privileges. Attackers can execute any code, potentially stealing secrets, keys, or further persisting on the system. The unauthenticated and unpinned nature of the payload delivery means attackers can change the malicious code at will. Secrets and keys stored on affected systems should be considered exposed and rotated immediately. Simply removing the package does not guarantee removal of all malicious software installed as a result.
Mitigation Recommendations
No official patch or fix is available for [email protected]. The package should be immediately removed from all systems. All secrets and keys on affected machines must be rotated from a secure, uncompromised environment. Due to full system compromise, affected hosts should be considered untrusted and rebuilt if possible. Monitor for any signs of persistence or additional malware installed as a result of this package. Avoid using this package or any versions related to 3.1.3.
Malicious code in type-unique (npm)
Description
The npm package type-unique version 3.1.3 is malicious. It impersonates the pino logger but executes a detached child process that fetches and runs remote JavaScript code with full Node.js privileges. This remote code execution allows an attacker to run arbitrary code on any system that loads this package. The malicious payload is fetched from unauthenticated third-party JSON hosting services controlled by the attacker. Systems with this package installed should be considered fully compromised, and secrets should be rotated. Removal of the package alone may not eliminate all malicious artifacts.
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 package [email protected] masquerades as the pino logger but, upon require(), spawns a detached Node.js child process that fetches JSON payloads from attacker-controlled third-party hosting services. It extracts a 'cookie' field from the JSON and executes it using the Function constructor, granting full Node.js execution capabilities including access to require. Additional command and control URLs are obfuscated as base64-encoded constants within the package source. The fetched payload is unpinned and unauthenticated, enabling arbitrary remote code execution on any machine that loads this package version. This results in complete compromise of the host system.
Potential Impact
Any system that installs or runs [email protected] is fully compromised due to arbitrary remote code execution with full Node.js privileges. Attackers can execute any code, potentially stealing secrets, keys, or further persisting on the system. The unauthenticated and unpinned nature of the payload delivery means attackers can change the malicious code at will. Secrets and keys stored on affected systems should be considered exposed and rotated immediately. Simply removing the package does not guarantee removal of all malicious software installed as a result.
Mitigation Recommendations
No official patch or fix is available for [email protected]. The package should be immediately removed from all systems. All secrets and keys on affected machines must be rotated from a secure, uncompromised environment. Due to full system compromise, affected hosts should be considered untrusted and rebuilt if possible. Monitor for any signs of persistence or additional malware installed as a result of this package. Avoid using this package or any versions related to 3.1.3.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10512
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-h8x5-f48q-v2h7"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a55ff8a68715ace432f47a6
Added to database: 07/14/2026, 09:21:14 UTC
Last enriched: 07/14/2026, 09:46:17 UTC
Last updated: 07/28/2026, 17:28:41 UTC
Views: 8
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.