MAL-2026-10778

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/relativity-pdfjs-dist/MAL-2026-10778.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10778
Published
2026-07-18T09:05:46Z
Modified
2026-08-04T23:05:26Z
Summary
Malicious code in relativity-pdfjs-dist (npm)
Details

-= 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-07-18T09:06:04.067654953Z",
            "modified_time": "2026-07-18T09:05:46Z",
            "sha256": "c48b9caf30af59020f36b25fb13fb54db5754b9d8ad311f857843171cc88915a",
            "source": "ossf-package-analysis",
            "versions": [
                "5.8.2"
            ]
        },
        {
            "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"
            ]
        },
        {
            "id": "IN-MAL-2026-011142",
            "import_time": "2026-08-04T22:30:01.445944213Z",
            "modified_time": "2026-08-04T21:38:30Z",
            "sha256": "542f0656a76929fa6bd11c9d8ff36f9f69c5865f46d835b8c707a803d71aa55f",
            "source": "amazon-inspector",
            "versions": [
                "99.9.9"
            ]
        },
        {
            "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
Credits

Affected packages

npm / relativity-pdfjs-dist

Package

Name
relativity-pdfjs-dist
View open source insights on deps.dev
Purl
pkg:npm/relativity-pdfjs-dist

Affected ranges

Affected versions

5.*
5.8.2
99.*
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"