MAL-2026-11392

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/switchpaymentsapiserv-paypal/MAL-2026-11392.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11392
Aliases
  • GHSA-rg3f-q822-6rx6
Published
2026-07-30T17:44:07Z
Modified
2026-08-04T22:05:17Z
Summary
Malicious code in switchpaymentsapiserv-paypal (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (cdf45ca375c6a15e134abf2ab456c8cbd75e514d934e2c16b1d2b23e9677186a)

The package's preinstall lifecycle script runs automatically on npm install and exfiltrates installer identity data via DNS. It collects os.userInfo().username, os.hostname(), and process.cwd(), JSON-serializes the values, hex-encodes them, chunks the hex into DNS-label-sized fragments, and issues dns.lookup queries of the form <index>.<chunk>.<tag>.d9jfvjgl8o8s72utl810ktk61s1xmsysr.o.jgl.red. The attacker-controlled authoritative nameserver for *.o.jgl.red reconstructs the payload from the query stream. Using DNS as the exfiltration channel bypasses typical HTTP egress controls and proxy logging. The in-code comment labeling the data as 'non-sensitive' does not match the behavior, which is covert transmission of host, user, and filesystem-path identifiers to a non-first-party domain at install time.

Source: ghsa-malware (12fb976a9e7017cbd4a87769d48e213d81eb350767ba2ab4b7d8653501215daa)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "GHSA-rg3f-q822-6rx6",
            "import_time": "2026-07-31T01:10:09.70987055Z",
            "modified_time": "2026-07-30T17:44:07Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "12fb976a9e7017cbd4a87769d48e213d81eb350767ba2ab4b7d8653501215daa",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-011081",
            "import_time": "2026-08-04T21:33:16.197774213Z",
            "modified_time": "2026-08-04T21:29:45Z",
            "sha256": "cdf45ca375c6a15e134abf2ab456c8cbd75e514d934e2c16b1d2b23e9677186a",
            "source": "amazon-inspector",
            "versions": [
                "2.3.4"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / switchpaymentsapiserv-paypal

Package

Name
switchpaymentsapiserv-paypal
View open source insights on deps.dev
Purl
pkg:npm/switchpaymentsapiserv-paypal

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.3.4

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": "preinstall.js",
            "sha256": "1116c86ff058067bed5fd41bdf33a017af1c8ddc00441bca5760f6051fc05728",
            "tlsh": "ef01f16522f53030045720d0db4f45452366e1233a11dc8c7ddd43454f87a65aea1deb"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/switchpaymentsapiserv-paypal/MAL-2026-11392.json"