Malicious code in relativity-pdfjs-dist (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-10778
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (542f0656a76929fa6bd11c9d8ff36f9f69c5865f46d835b8c707a803d71aa55f) package.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. ## Source: ossf-package-analysis (c48b9caf30af59020f36b25fb13fb54db5754b9d8ad311f857843171cc88915a) The OpenSSF Package Analysis project identified 'relativity-pdfjs-dist' @ 5.8.2 (npm) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity. - The package executes one or more commands associated with malicious behavior.
- Source published
- 18 Jul 2026 09:05:46 UTC
- Source modified
- 4 Aug 2026 23:05:26 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.