Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in type-astr (npm)

0
Critical
Published: 07/13/2026 (07/13/2026, 22:17:20 UTC)
Source: GCVE Database
Product: type-astr

Description

The npm package 'type-astr' version 3.2.3 is a malicious package masquerading as a pino-compatible logger. When required, it launches a detached Node.js child process that fetches attacker-controlled JavaScript code from remote anonymous paste-style hosting services and executes it with full Node.js require access. This results in full compromise of any system running or having installed this package. Immediate removal and secret/key rotation are strongly advised, though full remediation may require rebuilding the affected system due to potential persistent compromise.

Affected software

npmghsa
type-astr
Affected versions
=3.2.3

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

AILast updated: 07/14/2026, 09:46:34 UTC

Technical Analysis

The 'type-astr' npm package version 3.2.3 pretends to be a pino-compatible logger but actually executes remote attacker-controlled code. Upon requiring the package, it spawns a detached Node.js child process running a script that decodes a base64 URL, fetches JSON data from anonymous paste hosting sites, extracts a 'cookie' field, and executes it as JavaScript code with full require privileges. This allows arbitrary code execution within the Node.js environment, effectively giving an attacker full control over the compromised system. The remote code can be changed at any time by the attacker, making the threat persistent and dynamic.

Potential Impact

Systems with 'type-astr' version 3.2.3 installed or running are fully compromised, allowing attackers to execute arbitrary code with full Node.js require access. This can lead to theft of secrets, keys, and complete system takeover. Removal of the package alone may not eliminate all malicious artifacts, necessitating secret/key rotation and potentially full system rebuilds to ensure security.

Mitigation Recommendations

There is no official patch or fix available for this malicious package. The recommended mitigation is to immediately remove 'type-astr' version 3.2.3 from all systems. All secrets and keys stored on compromised systems should be rotated from a separate, trusted environment. Due to the nature of the compromise, consider rebuilding affected systems to ensure complete removal of malicious code. Monitor for any use of this package in your dependency trees and block or audit its installation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-10510
Osv Schema Version
1.7.4
Aliases
["GHSA-q9rm-w335-55w5"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a55ff8a68715ace432f47ae

Added to database: 07/14/2026, 09:21:14 UTC

Last enriched: 07/14/2026, 09:46:34 UTC

Last updated: 07/26/2026, 18:37:05 UTC

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses