{"id":"MAL-2026-15907","revision":"7a36b0063a9c40018a7e5efa972d62ba","records":[{"revision":"7a36b0063a9c40018a7e5efa972d62ba","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-15907","aliases":[],"title":"Malicious code in tiny-folder-tree (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fb7707665659f287294c31f37c4eff9ceba537e9b54859837615929c296a9540)\ntiny-folder-tree@0.1.0 declares a postinstall script (src/build.js) that runs on `npm install`. The script performs a DNS TXT lookup for spreadsheets-documents.com and, when the first character of the first TXT record is '1', invokes src/tools.js which issues an HTTPS request to a URL reconstructed at runtime from obfuscated numeric constants in src/const.js (base-77/base-45 encoded strings decoding to 'https' and an 'HTTPS://...' URL). The response's 'm' header is passed directly to child_process.execSync, yielding arbitrary attacker-controlled shell execution on the installer's machine. The require target for the HTTPS module and the destination URL are both reconstructed via helpers (normalize_hash / normalize_hash_map) to evade static analysis. An author-username bypass ('justin') skips execution on the author's own host, confirming the code is intended to fire on other installers rather than the maintainer.\n","state":0,"publishedAt":"2026-09-04T03:45:10+00:00","modifiedAt":"2026-09-04T04:30:06.5633473+00:00","affected":[{"ecosystem":"npm","name":"tiny-folder-tree","ranges":[],"versions":["0.1.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/tiny-folder-tree/v/0.1.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-15907","license":"OSV · upstream source license applies","key":"osv:MAL-2026-15907","identifiers":["MAL-2026-15907"]},"retained":false,"historicalAffected":[]}],"coverage":[]}