{"id":"MAL-2026-16077","revision":"88861e1ffc6341fc85599c987f5f4204","records":[{"revision":"88861e1ffc6341fc85599c987f5f4204","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-16077","aliases":[],"title":"Malicious code in chai-as-sleek (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (782914cb65e0d30697eb54f50a4c5b740a3a53941abc185759e296c1d2ec8e9e)\nPackage published as 'chai-as-sleek' impersonates the pino logger: README, LICENSE, docs/, and index.d.ts are copied verbatim from pino, while package.json description reads 'This document describes the management of vulnerabilities...' and the README also markets the package as a chai plugin. The main entrypoint index.js unconditionally executes `require('./lib/config')` at load time. lib/config.js is a single ~4 MB line of obfuscator.io-obfuscated JavaScript (23,868-entry rotated string array, decoder functions T and j, control-flow flattening, ~20k decoder-wrapper calls) with no configuration content. package.json declares `axios ^1.10.0` as a runtime dependency, but no readable source file imports axios — the only reachable consumer of the HTTP client is the opaque blob in lib/config.js. Any consumer that imports 'chai-as-sleek' executes this hidden payload at require() time with outbound HTTP capability provisioned.\n","state":0,"publishedAt":"2026-09-09T06:49:23+00:00","modifiedAt":"2026-09-09T07:00:09.7904677+00:00","affected":[{"ecosystem":"npm","name":"chai-as-sleek","ranges":[],"versions":["7.1.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-sleek/v/7.1.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-16077","license":"OSV · upstream source license applies","key":"osv:MAL-2026-16077","identifiers":["MAL-2026-16077"]},"retained":false,"historicalAffected":[]}],"coverage":[]}