Skip to main content

Malicious code in checkout-pay-button-logic (npm)

0
High
Published: 08/05/2026 (08/05/2026, 14:10:14 UTC)
Source: GCVE Database
Product: checkout-pay-button-logic

Description

The npm package 'checkout-pay-button-logic' version 35.3.8 contains malicious code that, upon requiring the package, downloads and executes a native binary payload from obfuscated Cloudflare Workers hostnames and fallback DNS-TXT resolvers. The payload is saved to temporary directories with deceptive filenames and executed detached from the main process. The malicious code attempts to mimic legitimate telemetry opt-out behavior but is unrelated to the package's stated functionality.

Affected software

npmghsa
checkout-pay-button-logic
Affected versions
=35.3.8

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: 08/05/2026, 16:00:32 UTC

Technical Analysis

The 'checkout-pay-button-logic' npm package version 35.3.8 includes malicious code that triggers on require. It invokes a helper script that selects a payload based on the operating system and fetches a native binary over HTTPS from obfuscated Cloudflare Workers hostnames, with a DNS-TXT base64 fallback from specific Russian domain resolvers. The binary is written to temporary locations with cover-story filenames such as 'analytics_state' or 'dotnet_diag', permissions are set to executable, and it is spawned detached via shell commands. The malware reads environment variables related to telemetry opt-out to appear legitimate. This behavior is unrelated to the package's intended purpose and indicates supply chain compromise or package hijacking.

Potential Impact

The malicious code results in execution of an unauthorized native binary on the host system, potentially allowing arbitrary code execution. The use of obfuscated hostnames and fallback DNS resolvers complicates detection. The dropped payload runs detached and may evade casual inspection. This compromises the integrity and security of any environment that installs and requires this package version.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid using version 35.3.8 of 'checkout-pay-button-logic'. Investigate and remove this package if present. Monitor for updates or advisories from the package maintainers or npm registry. Since this is a malicious package version, replacing it with a clean, verified version or removing it entirely is recommended.

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-12584
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a735733bf8831d53913d0d2

Added to database: 08/05/2026, 15:30:59 UTC

Last enriched: 08/05/2026, 16:00:32 UTC

Last updated: 09/13/2026, 16:36:33 UTC

Views: 20

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