{"id":"MAL-2026-10450","summary":"Malicious code in font-hub (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3df3dbd8669e4658a00a698bd8bd233d4c07de13b0f0e5533ca0d456b2ea3cf1)\nindex.js exports a getPlugin() function that performs an HTTPS request to https://svganchordev.net/icons/\u003ctoken\u003e and passes the response's `credits` field into `new Function('require','module','exports',...,'Promise', data.credits)`, then invokes it with the real `require`, `process`, `Buffer`, and I/O globals. This executes attacker-controlled JavaScript with full Node.js privileges whenever a consumer imports the package and calls its default export. The package presents itself as a React SVG/font helper, but the README content documents an unrelated 'polymarket-clob-api' project, and the declared dependencies (@primno/dpapi, better-sqlite3, node-machine-id) are consistent with browser-credential-store access on Windows. The fetched endpoint is unrelated to any font/SVG CDN; an iconDomain map referencing cloudflare/fastly/akamai and a font-awesome path are decorative and unused by the live code path, which unconditionally targets svganchordev.net.\n","modified":"2026-07-13T15:47:28.989318319Z","published":"2026-07-13T14:22:43Z","database_specific":{"malicious-packages-origins":[{"versions":["1.5.2"],"id":"IN-MAL-2026-010262","import_time":"2026-07-13T15:30:31.48919101Z","modified_time":"2026-07-13T14:22:43Z","sha256":"3df3dbd8669e4658a00a698bd8bd233d4c07de13b0f0e5533ca0d456b2ea3cf1","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/font-hub/v/1.5.2"}],"affected":[{"package":{"name":"font-hub","ecosystem":"npm","purl":"pkg:npm/font-hub"},"versions":["1.5.2"],"database_specific":{"indicators":{"evidence_files":[{"path":"index.js","sha256":"f03baeca30cfcbb5903b1d93435435be75b45695cae2510970d803a09ba7071d","tlsh":"3ac1616546fa31a36a67e4edf30f10027165e3133759e971f48e42902fca568e5f24e8"}],"package_integrity":[{"hashes":{"sha1":"ddf3ea97a351e29b77031ff3ced032912b912f0c","sha512_sri":"sha512-ysFvjWnigWMRbWg0AU6Udq5tPd5EHumtrZsTD2lwv43JdRvzRxHVAuuYlOzfCNxw7Fjpf0dUe+2AWwyIHg7cTA=="},"filename":"font-hub-1.5.2.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/font-hub/MAL-2026-10450.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}