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 babel-preset-lib-client (npm)

0
Critical
Published: 07/12/2026 (07/12/2026, 21:32:17 UTC)
Source: GCVE Database
Product: babel-preset-lib-client

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (4274de0136aa69f8b0f4eba03412c7809a1b8c2446bb3ed7f6de1333475aa4c4) index.js, the package main, runs a load-time IIFE that collects OS platform and architecture, hostname, username, private and public IP (via https://api.ipify.org), current working directory, the full output of `printenv` (base64-encoded), and the base64-encoded output of `tree../`, then POSTs the aggregated payload to a hardcoded Discord webhook at https://discord.com/api/webhooks/1524917003394089029/. The package name mimics the babel-preset naming convention but the code implements no Babel functionality; author, description, and keywords are empty. Any consumer that installs and requires this package leaks its full process environment (typically including NPM_TOKEN, AWS_*, GITHUB_TOKEN, and other CI/developer secrets) plus a listing of the parent directory to the attacker-controlled Discord channel. ## Source: ghsa-malware (fea0fc558d775f5f0b5312b5d3f5ead65a9b5963916fc1c4193b84fc66f3f7d9) 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
babel-preset-lib-client
Affected versions
=4.9.10=4.9.9=4.9.11

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/13/2026, 09:57:02 UTC

Technical Analysis

The malicious npm package babel-preset-lib-client (versions 4.9.9, 4.9.10, and 4.9.11) executes a load-time Immediately Invoked Function Expression (IIFE) that gathers extensive system and environment information, including sensitive environment variables and directory listings. This aggregated data is exfiltrated via an HTTP POST request to a hardcoded Discord webhook URL. The package falsely presents itself as a Babel preset but contains no Babel-related functionality, indicating its sole purpose is data theft. This behavior exposes any consuming environment to significant information disclosure risks.

Potential Impact

Sensitive environment variables and system information are leaked to an attacker-controlled endpoint, potentially exposing credentials such as NPM_TOKEN, AWS keys, GitHub tokens, and other secrets used in continuous integration or development environments. This can lead to unauthorized access, privilege escalation, and compromise of related infrastructure or services.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately remove and avoid installing or requiring the babel-preset-lib-client package versions 4.9.9, 4.9.10, and 4.9.11. Review and revoke any potentially exposed secrets and rotate credentials that may have been compromised. Monitor for any unauthorized access resulting from leaked credentials. Check vendor advisories or trusted sources for updates or official fixes.

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-10214
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a54ae0668715ace438f82dd

Added to database: 07/13/2026, 09:21:10 UTC

Last enriched: 07/13/2026, 09:57:02 UTC

Last updated: 07/25/2026, 02:29:44 UTC

Views: 69

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