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 ts-webplug (npm)

0
Critical
Published: 06/17/2026 (06/17/2026, 04:23:11 UTC)
Source: GCVE Database
Product: ts-webplug

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a120eb8e3f6ca34493b7f282544523ab60137e8388148b191f46cda094e50789) The package impersonates the pino logger (README titled 'chai-mocks', badges linking to pinojs/pino, module export named `pino`) while its actual package name `ts-webplug` is unrelated. When a consumer requires the package and invokes its exported middleware, `index.js` spawns `lib/caller.js` as a detached Node child process. `lib/caller.js` performs `axios.get(...)` against https://jsonhosting.com/api/json/9343c2ce/raw, extracts the `cookie` field from the response, and passes it to `new Function.constructor('require', s)(require)` — evaluating attacker-controlled JavaScript with full `require` access in the consumer's Node process. The remote URL is additionally concealed in a spoofed `process.env` object where `DEV_API_KEY` is a base64 blob decoding to a jsonkeeper.com URL (a second mutable, anonymous-host pointer in `lib/const.js` decodes to https://jsonkeeper.com/b/4NAKK). The fetch host is a mutable anonymous paste service — today's payload can be swapped for anything at any time — and the executed code runs with full Node privileges on the installer/consumer machine. ## Source: ghsa-malware (ab49780fe41f3794685e5956a0d5a7c3ecdf35303b839d14f2b2d6c11d20032e) 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
ts-webplug
Affected versions
=3.0.5

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/07/2026, 00:07:58 UTC

Technical Analysis

[email protected] is a malicious npm package that mimics the pino logger's interface and file structure to deceive developers. Its main export includes a middleware function that spawns a detached Node.js child process executing code fetched dynamically from a mutable JSON paste service (jsonkeeper.com). The fetched code is executed with full Node.js require() capability, enabling arbitrary remote code execution on the host machine. The package also includes decoy environment variables that base64-decode to additional URLs hosting malicious payloads. This behavior activates as soon as the middleware is used, making any system running this package fully compromised.

Potential Impact

Systems that have installed or run [email protected] are at risk of full compromise due to remote code execution capabilities granted to the attacker. This allows arbitrary code execution with the privileges of the Node.js process, potentially leading to theft of secrets, keys, and complete system control. The malicious payload is fetched from an external source, enabling dynamic and evolving attacks. Removal of the package alone does not guarantee remediation as the attacker may have established persistent access.

Mitigation Recommendations

No official patch or fix is available for [email protected]. Immediate removal of the package is recommended. However, because the package grants full remote code execution, affected systems should be considered fully compromised. All secrets, keys, and credentials stored on the system should be rotated from a separate, trusted environment. Conduct a thorough incident response to identify and remediate any persistent backdoors or additional malware. Monitor for any suspicious activity related to this package.

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-5994
Osv Schema Version
1.7.4
Aliases
["GHSA-m637-4v9j-499p"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a4c342c27e9c797195fa488

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

Last enriched: 07/07/2026, 00:07:58 UTC

Last updated: 07/29/2026, 17:13:15 UTC

Views: 6

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