Skip to content

MAL-2026-11392 Malicious code in switchpaymentsapiserv-paypal (npm)

Unknown
Published
Updated
Exploit status
No public exploit known

Description


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

Upgrade path

1 package: 0 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
npm switchpaymentsapiserv-paypal(npm) = 2.3.4; All versions No fix listed No fix yet

Affected products

ProductAffected versionsFixed in
npm switchpaymentsapiserv-paypal(npm) All versions No fix listed
npm switchpaymentsapiserv-paypal(npm) = 2.3.4 No fix listed

References