{"id":"MAL-2026-17300","revision":"f74a854ba9f640af99cd8b33dcddb72f","records":[{"revision":"f74a854ba9f640af99cd8b33dcddb72f","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-17300","aliases":[],"title":"Malicious code in common-fs (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e3d99fa69df24bb5170c840f84e44038c20cf8b431c94abfd57eaa3701593684)\ncommon-fs advertises itself as a filesystem/transaction helper but ships an obfuscated code loader. index.js reconstructs the identifiers 'Function', 'Buffer', 'require', 'process', and 'setTimeout' from a shuffled string-array and obtains the Function constructor indirectly via global.constructor.constructor, hiding the eval sink from casual review. The documented getTransactions() entry point calls load_transaction_data(), which reads the sibling file use.js, treats it as a product catalog, concatenates the per-entry 'mark' fields in id order, applies a base64 + Caesar-shift decode followed by another base64 decode, and executes the resulting bytes with the Function constructor while injecting Buffer, require, and process. use.js is not data; it is the payload container, split across many small 'mark' fields to defeat string search. The moment a consumer calls the library's advertised API, attacker-controlled JavaScript runs in the caller's process with full access to require and process — enabling arbitrary code execution, filesystem access, and network exfiltration on the installer's host.\n","state":0,"publishedAt":"2026-09-29T23:24:07+00:00","modifiedAt":"2026-09-29T23:45:38.0139653+00:00","affected":[{"ecosystem":"npm","name":"common-fs","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/common-fs/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-17300","license":"OSV · upstream source license applies","key":"osv:MAL-2026-17300","identifiers":["MAL-2026-17300"]},"retained":false,"historicalAffected":[]}],"coverage":[]}