Skip to content
Heist/ feed
Unrated

Malicious code in paypal-postman-lib (npm)

Type: advisorySource: OSV1 source record

The package communicates with a domain associated with malicious activity. --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (c2b733a611e3d27e56f4c6ee549bbcf3d88a1c823512c13797440c4c13f2712c) The package's index.js imports os, fs, and https at the top level and reads os.hostname() and os.userInfo() before sending the collected host identity over an outbound HTTPS request. The package name impersonates PayPal/Postman branding while shipping no legitimate library functionality, and the only observable behavior is collection and transmission of installer host data. Installing or requiring this package causes the installer's hostname and OS user identity to be sent to a third-party endpoint. ## Source: ghsa-malware (d1aef7d24ee6f2a862da9b261ae8d267bfcd3e277adfe6d09edb31b7c7b18570) 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.

Announced Source revision 1
Original source ↗

MAL-2025-47594

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2025-47594

paypal-postman-lib

Source reference: /affected/0/package/name

Affected versions
2.0.9

Source reference: /affected/0/versions

1.0.1

Source reference: /affected/0/versions

1.0.2

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "2.0.9"
          }
        ]
      },
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "paypal-postman-lib",
      "purl": "pkg:npm/paypal-postman-lib",
      "ecosystem": "npm"
    },
    "versions": [
      "2.0.9",
      "1.0.1",
      "1.0.2"
    ],
    "database_specific": {
      "cwes": [
        {
          "name": "Embedded Malicious Code",
          "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",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/paypal-postman-lib/MAL-2025-47594.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "index.js",
            "tlsh": "71411195a2da17330de214c06a0c70812399fa767169a99076cf42d69f869f8b7326f3",
            "sha256": "219f8d4607b82034852dd5c934d2b85aed36ef4d6bd7d7ab814f40d367b26c86"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#10885 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement