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…

MAL-2026-10402: Malicious code in @gleamkit/ws (npm)

0
Critical
Published: 07/13/2026 (07/13/2026, 06:00:14 UTC)
Source: GCVE Database
Product: @gleamkit/ws

Description

The npm package @gleamkit/ws version 8.21.3 is a malicious package that impersonates the legitimate ws package by copying its metadata and source code. It contains a heavily obfuscated payload that, upon loading, fetches an external encrypted binary, decrypts it, writes it to the temporary directory, makes it executable, and runs it as a detached child process before exiting. This behavior executes attacker-controlled code on any project that installs and loads this package.

Affected software

npmghsa
@gleamkit/ws
Affected versions
=8.21.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/13/2026, 09:48:04 UTC

Technical Analysis

The @gleamkit/ws package version 8.21.3 is a malicious npm package designed to masquerade as the legitimate ws package by duplicating its description, homepage, repository, author, and README. It bundles the genuine ws source code but appends a heavily obfuscated payload in lib/websocket.js. This payload reconstructs runtime data to fetch an external binary over HTTPS, decrypts it using AES-256-GCM, writes it to the OS temporary directory, sets executable permissions, and spawns it as a detached child process with hidden windows. The process then exits immediately. This execution is triggered simply by requiring or importing the package, causing any project that loads @gleamkit/ws to run attacker-controlled code.

Potential Impact

Any project that installs and loads the malicious @gleamkit/ws package version 8.21.3 will execute attacker-controlled code fetched remotely at runtime. This can lead to arbitrary code execution on the host system, potentially compromising confidentiality, integrity, and availability of the affected environment.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately remove the @gleamkit/ws package version 8.21.3 from their projects and avoid installing or loading this package. Verify dependencies to ensure this malicious package is not present. Monitor for updates from the npm registry or relevant security advisories for any official remediation or replacement guidance. Since this is a malicious package impersonating a legitimate one, rely on trusted package sources and verify package integrity before 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-10402
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a54adea68715ace438f6a70

Added to database: 07/13/2026, 09:20:42 UTC

Last enriched: 07/13/2026, 09:48:04 UTC

Last updated: 07/13/2026, 09:48:04 UTC

Views: 2

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