{"id":"MAL-2026-10778","summary":"Malicious code in relativity-pdfjs-dist (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (542f0656a76929fa6bd11c9d8ff36f9f69c5865f46d835b8c707a803d71aa55f)\npackage.json declares a preinstall script that runs `node -e` inline JavaScript on npm install. The inline code collects the installer's hostname, username, current working directory, npm registry configuration, CI environment markers (CI, GITHUB_REPOSITORY, JENKINS_URL), and platform, base64-encodes the JSON, and sends it as an HTTPS GET query parameter to `9u4hlcu3febavvzbrqulpuwf66cy0qof.oastify.com`, a Burp Collaborator out-of-band exfiltration endpoint. The package name resembles the legitimate `pdfjs-dist` package and the version number `99.9.9` is a dependency-confusion pattern intended to outrank an internal package of the same name.\n\n## Source: ossf-package-analysis (c48b9caf30af59020f36b25fb13fb54db5754b9d8ad311f857843171cc88915a)\nThe OpenSSF Package Analysis project identified 'relativity-pdfjs-dist' @ 5.8.2 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n","modified":"2026-08-04T23:05:26.151730627Z","published":"2026-07-18T09:05:46Z","database_specific":{"malicious-packages-origins":[{"versions":["5.8.2"],"import_time":"2026-07-18T09:06:04.067654953Z","modified_time":"2026-07-18T09:05:46Z","sha256":"c48b9caf30af59020f36b25fb13fb54db5754b9d8ad311f857843171cc88915a","source":"ossf-package-analysis"},{"import_time":"2026-07-18T10:03:28.709498049Z","modified_time":"2026-07-18T09:19:31Z","sha256":"8a40319295154d72e1485a810cfd456ee7d44cabe572cba35912723f838edb65","source":"ossf-package-analysis","versions":["99.9.9"]},{"sha256":"542f0656a76929fa6bd11c9d8ff36f9f69c5865f46d835b8c707a803d71aa55f","source":"amazon-inspector","versions":["99.9.9"],"id":"IN-MAL-2026-011142","import_time":"2026-08-04T22:30:01.445944213Z","modified_time":"2026-08-04T21:38:30Z"},{"id":"IN-MAL-2026-011143","import_time":"2026-08-04T22:30:01.542018275Z","modified_time":"2026-08-04T21:38:39Z","sha256":"74184da64255136795ef84ac6057c0889494a68689a5aec9832c7e8d08dac8d9","source":"amazon-inspector","versions":["5.8.2"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/relativity-pdfjs-dist/v/99.9.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/relativity-pdfjs-dist/v/5.8.2"}],"affected":[{"package":{"name":"relativity-pdfjs-dist","ecosystem":"npm","purl":"pkg:npm/relativity-pdfjs-dist"},"versions":["5.8.2","99.9.9"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"adbf0cc65a0b83173fe99f94afd818801c9657829ff9177256df4783632714f0","tlsh":"d2f0997d8aa8cc3b05d40bd1243599875df2a89a220894a19e17a00e5fa07a20a7342f"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/relativity-pdfjs-dist/MAL-2026-10778.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}