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 log-format-thread (npm)

0
Critical
Published: 07/06/2026 (07/06/2026, 18:53:55 UTC)
Source: GCVE Database
Product: log-format-thread

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (6e034e855661cc792a14908c613b0d3ae31917a99927ddf0db29b1ae173df0cd) Package advertises itself as a log formatter but exposes an undocumented `threadContent` option on `createLogger()` that is forwarded to a worker thread which compiles and executes it via `new Function('require', payload)(require)` (src/worker.js lines 5-7, triggered from src/index.js lines 148-151). The eval only runs against a payload the caller explicitly supplies, so installing or requiring the package does not by itself execute attacker-controlled code, and there are no install hooks, no remote fetches, no credential reads, and no outbound exfiltration. However, the feature is undocumented in the README, is shaped like a backdoor primitive rather than logging functionality, and the package also pulls in `axios` and `request` despite the README claiming 'Zero dependencies'. Consumers who pass user-controlled or otherwise untrusted data into `threadContent` would expose their application to arbitrary code execution. Routing to human review so a maintainer can decide whether to publish a public advisory about the undocumented eval surface and the dependency mismatch. ## Source: ghsa-malware (336e8b05b5d99a33aed734a8bc6940554d865ad279346612362782f4cded5ff3) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
log-format-thread
Affected versions
=1.0.1=1.0.0

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/06/2026, 23:52:50 UTC

Technical Analysis

The 'log-format-thread' npm package versions 1.0.0 and 1.0.1 have been identified as containing malicious code. Installation or execution of this package results in a full compromise of the host system, potentially allowing an attacker to gain complete control. Due to the severity of the compromise, simply removing the package is insufficient to ensure system integrity. Secrets and keys stored on the compromised system must be rotated from a separate, trusted environment to prevent further unauthorized access.

Potential Impact

Systems with 'log-format-thread' versions 1.0.0 or 1.0.1 installed or running are fully compromised, meaning attackers may have complete control over the system. This includes potential unauthorized access to sensitive data, credentials, and system resources. The presence of this malicious package undermines the trustworthiness of the affected environment and may lead to further malicious activities.

Mitigation Recommendations

Remove the 'log-format-thread' package versions 1.0.0 and 1.0.1 immediately. However, removal alone does not guarantee full remediation due to potential persistent malicious software. Rotate all secrets, keys, and credentials stored on the compromised system from a different, secure machine. Conduct a thorough security assessment and consider rebuilding the affected system to ensure complete removal of malicious artifacts.

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-6848
Osv Schema Version
1.7.4
Aliases
["GHSA-fw7h-6mmw-4jjr"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a4c343927e9c797195facf6

Added to database: 07/06/2026, 23:03:21 UTC

Last enriched: 07/06/2026, 23:52:50 UTC

Last updated: 07/31/2026, 11:18:13 UTC

Views: 35

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