Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

MAL-2026-10166: Malicious code in paysafe-api (npm)

0
High
Published: 07/10/2026 (07/10/2026, 18:37:14 UTC)
Source: GCVE Database
Product: paysafe-api

Description

The npm package 'paysafe-api' version 1.0.0 is a malicious package impersonating a legitimate Paysafe SDK. It contains stub methods that appear functional but covertly exfiltrate sensitive environment data and partial API keys to a hardcoded attacker server. The exfiltration is triggered only on developer machines meeting certain criteria to evade sandbox detection.

Affected software

npmghsa
paysafe-api
Affected versions
=1.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/11/2026, 09:55:03 UTC

Technical Analysis

The 'paysafe-api' npm package (version 1.0.0) masquerades as a Paysafe REST SDK but contains malicious code that collects sensitive information including hostname, username, current working directory, environment variables with key-like substrings, and the first 10 characters of the configured API key. This data is encoded and sent via HTTPS POST to a hardcoded external server on port 8443. The package uses obfuscation techniques such as base64-encoded XOR ciphertext and runtime decoding with a hardcoded key. It also includes checks to avoid execution in analyst sandbox environments by verifying CPU count and blacklisting certain hostnames and usernames. The repository URL is fake, pointing to a non-existent GitHub repository, further indicating its malicious intent. Any developer integrating this package with a real API key risks leaking that key and environment secrets to attackers.

Potential Impact

Any developer who installs and uses the 'paysafe-api' package version 1.0.0 with a real API key will have sensitive environment information and partial API key data exfiltrated to an attacker-controlled server. This compromises the confidentiality of API credentials and environment secrets, potentially leading to unauthorized access and further compromise of systems relying on these credentials.

Mitigation Recommendations

No official patch or remediation is available for this malicious package. The package should be removed immediately if found in any project dependencies. Developers should verify the authenticity of npm packages before installation, avoid packages with suspicious repository URLs, and rotate any API keys or secrets that may have been exposed by using this package. Use trusted sources and official SDKs from verified publishers only.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-10166
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a520ebf68715ace438f59ac

Added to database: 07/11/2026, 09:37:03 UTC

Last enriched: 07/11/2026, 09:55:03 UTC

Last updated: 07/11/2026, 09:55:03 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses