{"id":"MAL-2026-6793","revision":null,"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":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-25T18:42:41.2367407+00:00","complete":true,"records":1796,"lastAttemptAt":"2026-11-25T18:42:41.2367407+00:00","lastSuccessAt":"2026-11-25T18:42:41.5328616+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:42:41.5328629+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8d356adab43082cb10bb7c033ed58312cf2ad2f0fb10e0afdf27fc89fa361f3b-038a7597bebeeb6d352a0d0976d1a32f695b7cf3343b14a66b5983f704ec7a95","complete":true,"records":432306,"lastAttemptAt":"2026-11-25T18:40:28.6061805+00:00","lastSuccessAt":"2026-11-25T18:40:28.4492817+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:40:28.6061805+00:00","snapshotPublishedAt":"2026-11-25T18:30:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-2f40107d2a6d4c4ba950e1f2483b11ca","complete":false,"records":13939,"lastAttemptAt":"2026-11-25T18:54:49.005417+00:00","lastSuccessAt":"2026-11-25T18:54:48.999+00:00","error":"129 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T18:54:48.999+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13839,"expectedIdentifiers":13987,"failedIdentifiers":129},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-25T18:42:41.2367407+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T18:42:41.2367407+00:00","lastSuccessAt":"2026-11-25T18:42:41.5340517+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:42:41.5340525+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-eb39311d8c62406daf6963e5b356a43d","complete":false,"records":13951,"lastAttemptAt":"2026-11-25T18:44:12.4797167+00:00","lastSuccessAt":"2026-11-25T17:31:37.566+00:00","error":"2 identifier lookups failed; latest failures include request timeout. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T17:31:37.566+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13985,"expectedIdentifiers":13987,"failedIdentifiers":2},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-70b1e3058f76fab20c77bb1c4924a4c57f7654dd208befb5b1f237e682d6ddca","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T18:42:41.1746216+00:00","lastSuccessAt":"2026-11-25T11:46:59.5507764+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:42:41.1746216+00:00","snapshotPublishedAt":"2026-11-25T11:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-25T18:40:32.1449167+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:40:32.1449167+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-5be533520b83c9bfaebc80695093f6f0d59feafc2a1eab94e91dd79d1bb9241b","complete":true,"records":3222,"lastAttemptAt":"2026-11-25T18:42:41.1913488+00:00","lastSuccessAt":"2026-11-25T11:47:03.6026853+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:42:41.1913488+00:00","snapshotPublishedAt":"2026-11-25T11:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-e0108771d3403a7692f5eecc7e60f02be2caf0a402ba580c3e45aa7b66c7928a","complete":true,"records":233143,"lastAttemptAt":"2026-11-25T18:42:41.0003554+00:00","lastSuccessAt":"2026-11-25T18:42:39.3893996+00:00","error":null,"lastVerifiedAt":"2026-11-25T18:42:41.0003554+00:00","snapshotPublishedAt":"2026-11-25T18:33:30+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}