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…

Malicious code in creditcard.js (npm)

0
High
Published: 06/05/2026 (06/05/2026, 00:53:43 UTC)
Source: GCVE Database
Product: creditcard.js

Description

The npm package creditcard.js versions 2.1.8 and 3.0.60 contain malicious code associated with the Miasma malware. This malware is a self-propagating worm that spreads by abusing weaponized binding.gyp files during package installation. It attempts to exfiltrate credentials and OIDC tokens for cloud and registry services and propagates by compromising other packages or committing backdoor files to GitHub repositories.

Affected software

npmghsa
creditcard.js
Affected versions
=2.1.8=3.0.60

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/09/2026, 10:07:34 UTC

Technical Analysis

The creditcard.js npm package versions 2.1.8 and 3.0.60 have been found to contain malicious code linked to the Miasma malware. Miasma spreads across the npm registry by exploiting weaponized binding.gyp files, which execute during package installation and bypass security tools that only inspect lifecycle scripts. Once executed, the malware attempts to steal credentials and OIDC tokens for various cloud and registry services. It further propagates by compromising other npm packages managed by the stolen accounts or by committing backdoor files to GitHub repositories. There is no CVSS score or vendor advisory available, and no known exploits in the wild have been reported.

Potential Impact

The malicious code can lead to credential and token theft for cloud and registry services, potentially allowing attackers to compromise additional packages and repositories. This can result in widespread supply chain compromise within the npm ecosystem and associated cloud environments.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix or official guidance is available, avoid using the affected versions (=2.1.8 and =3.0.60) of creditcard.js. Monitor for updates from the package maintainers or npm security advisories regarding remediation or package removal.

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-5242
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a4f6c7068715ace4315aa47

Added to database: 07/09/2026, 09:40:00 UTC

Last enriched: 07/09/2026, 10:07:34 UTC

Last updated: 07/29/2026, 12:50:54 UTC

Views: 8

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