{"id":"GHSA-g2cj-hj2c-phvf","revision":null,"records":[{"revision":"3c2160dcf1bd4867b5cdb317fe902fd6","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10424","aliases":["GHSA-g2cj-hj2c-phvf"],"title":"Malicious code in terminal-mascot (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f3fdf1ac60d0060cb78970c884bcfa7bb5360d9f700c0f8992b66af09cce22ae)\nterminal-mascot@3.5.2 ships a postinstall script (install-check.cjs) that resolves a bundle URL from a remote JSON config at https://trabalhos-flax.vercel.app/config/clob-math.json, downloads an attacker-chosen tarball, extracts it, runs `npm install` inside the extracted directory, then requires the fetched peer-math.js and invokes its exported syncSession() function. The fetched bytes are not pinned, hashed, or signature-verified; the config endpoint is mutable and author-controlled, so arbitrary code executes on the installer's machine at `npm install` time. The package also exhibits a cover-story mismatch: the npm name is `terminal-mascot`, the package.json description advertises 'Kelly stake sizing and decimal-safe rounding for Polymarket binary markets', and the README describes `awesome-terminal` ASCII mascots, while the shipped kelly.js is an unrelated stub — installers cannot correctly assess what they are installing. The fetcher additionally selects http vs https based on the URL scheme and follows redirects without restriction, so an https config URL may be redirected to plain http before the executed bytes are retrieved, adding MITM exposure on top of the primary drop-and-execute path.\n\n## Source: ghsa-malware (6de6a065ee5a3111e607798887c08d3b072a80bc43ec67e51aeadf56306964e9)\nAny 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.\n","state":0,"publishedAt":"2026-07-13T06:51:23+00:00","modifiedAt":"2026-08-05T07:21:33.9733109+00:00","affected":[{"ecosystem":"npm","name":"terminal-mascot","ranges":[],"versions":["3.5.2","3.5.3","1.0.3","1.0.2","1.0.1","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/terminal-mascot/v/3.5.2","https://www.npmjs.com/package/terminal-mascot/v/3.5.3","https://github.com/advisories/GHSA-g2cj-hj2c-phvf","https://www.npmjs.com/package/terminal-mascot/v/1.0.2","https://www.npmjs.com/package/terminal-mascot/v/1.0.3","https://www.npmjs.com/package/terminal-mascot/v/1.0.0","https://www.npmjs.com/package/terminal-mascot/v/1.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10424","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10424","identifiers":["MAL-2026-10424","GHSA-g2cj-hj2c-phvf"]},"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-23T07:27:20.3413744+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-23T07:27:20.3413744+00:00","lastSuccessAt":"2026-11-23T07:27:20.5153698+00:00","error":null,"lastVerifiedAt":"2026-11-23T07:27:20.5153701+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-d008fb8e7e5a0f37166ee57a6d9d22b27e49b9d9438b4ce80c4c6c326ac5d75a-99093b50c0e2e59f293963fb51e76fca4126ef5ae5e39e19235d31dc859f7a99","complete":true,"records":430583,"lastAttemptAt":"2026-11-23T08:25:38.8508562+00:00","lastSuccessAt":"2026-11-23T08:25:38.8263278+00:00","error":null,"lastVerifiedAt":"2026-11-23T08:25:38.8508562+00:00","snapshotPublishedAt":"2026-11-23T07:31:39+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-9f95181888024d65a3394526dbdbc6ab","complete":false,"records":13928,"lastAttemptAt":"2026-11-23T07:33:52.0315722+00:00","lastSuccessAt":"2026-11-23T07:33:51.005+00:00","error":"123 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-23T07:33:51.005+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13847,"expectedIdentifiers":13976,"failedIdentifiers":123},{"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-23T07:27:20.3413744+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-23T07:27:20.3413744+00:00","lastSuccessAt":"2026-11-23T07:27:20.5162681+00:00","error":null,"lastVerifiedAt":"2026-11-23T07:27:20.5162682+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-a9c236c090ee435a90cecf0b67875123","complete":true,"records":13940,"lastAttemptAt":"2026-11-23T07:27:21.0920013+00:00","lastSuccessAt":"2026-11-23T05:28:41.035+00:00","error":null,"lastVerifiedAt":"2026-11-23T05:28:41.035+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13976,"expectedIdentifiers":13976,"failedIdentifiers":0},{"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-a9c862bcf8bde52ce182f69609f4579ca2fc6956e44f694dddf6a66800619683","complete":true,"records":9989,"lastAttemptAt":"2026-11-23T07:27:20.2895718+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-23T07:27:20.2895718+00:00","snapshotPublishedAt":"2026-11-22T16:18:32+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-23T08:25:39.0074712+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-23T08:25:39.0074712+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-34e3febe229a8c4d306159756d21338234dcade8dc1897229c4083bb83bd0f50","complete":true,"records":3215,"lastAttemptAt":"2026-11-23T07:27:20.3057777+00:00","lastSuccessAt":"2026-11-22T22:25:42.902989+00:00","error":null,"lastVerifiedAt":"2026-11-23T07:27:20.3057777+00:00","snapshotPublishedAt":"2026-11-22T21:48:33+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-4ad141eef06a76ae6ee517debe406f826f75a429055a08155495d83ac23946ed","complete":true,"records":232866,"lastAttemptAt":"2026-11-23T08:25:47.2570104+00:00","lastSuccessAt":"2026-11-23T07:27:19.1568277+00:00","error":null,"lastVerifiedAt":"2026-11-23T07:27:20.1607246+00:00","snapshotPublishedAt":"2026-11-23T06:33:25+00:00","importing":true,"stagedRecords":232869,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}