{"id":"MAL-2026-13446","revision":"e3d89d05168a44a9a79cc175454bb4df","records":[{"revision":"e3d89d05168a44a9a79cc175454bb4df","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13446","aliases":[],"title":"Malicious code in express-chai (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (34482e23635422fb5ca5632e68708453f1c99317a31e5e8346c75c4d3466560f)\nexpress-chai presents itself as an Express logger middleware impersonating pino, but its exported middleware factory invokes lib/caller.js which decodes a base64-obfuscated URL (https://gray-dyane-31.tiiny.site/index.json) stored in lib/const.js, fetches a JSON payload via axios with a base64-encoded `dev-secret-key` header, and passes the response's `cookie` field to `new Function.constructor(\"require\", s)`, then invokes the resulting function with the local `require`. This grants the operator of the anonymous tiiny.site host arbitrary code execution inside the installer's Node.js process at middleware setup time, with full access to `require` and the surrounding application context. The destination URL and secret header are base64-encoded rather than plain configuration, and the package's naming, keywords (fast, logger, stream, json), and pino-mirroring script names disguise a remote code loader as a well-known logging library.\n","state":0,"publishedAt":"2026-08-06T19:11:04+00:00","modifiedAt":"2026-08-06T23:50:14.4272855+00:00","affected":[{"ecosystem":"npm","name":"express-chai","ranges":[],"versions":["3.7.9"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/express-chai/v/3.7.9"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13446","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13446","identifiers":["MAL-2026-13446"]},"retained":false,"historicalAffected":[]}],"coverage":[]}