Skip to main content

Malicious code in xcryption (npm)

0
Critical
Published: 09/04/2026 (09/04/2026, 05:18:47 UTC)
Source: GCVE Database
Product: xcryption

Description

The xcryption npm package versions 1.0.0, 1.0.1, 1.0.2, and 1.0.3 contain malicious code in a postinstall script. This script downloads and executes an unverified payload from an anonymous file-sharing service during installation, allowing arbitrary code execution on the installer's machine. The package disguises itself as a benign text transformation utility but performs harmful actions silently, suppressing errors and forcing a successful install status.

Affected software

npmghsa
xcryption
Affected versions
=1.0.0=1.0.1=1.0.3=1.0.2

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: 09/07/2026, 17:38:27 UTC

Technical Analysis

The xcryption npm package includes a postinstall script (scripts/install.js) that downloads a ZIP archive from an untrusted Dropbox URL, extracts it to a temporary directory, waits 30 seconds, and executes any executable (.exe or .sh) found within. The payload is unpinned and lacks integrity verification, posing a risk of arbitrary code execution on the host running npm install. The script avoids execution in production or CI environments, spoofs a Windows browser User-Agent, suppresses all errors, and forces a zero exit code to hide malicious activity. The package metadata is inconsistent, presenting a cover story as a text-transform utility, masking its true malicious intent.

Potential Impact

Installing affected versions of the xcryption package results in arbitrary code execution on the installer's system with the privileges of the user running npm install. This can lead to system compromise, data theft, or further malware deployment. The malicious payload is fetched from an untrusted source without verification, increasing the risk of executing arbitrary and potentially harmful code.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing the xcryption package versions 1.0.0, 1.0.1, 1.0.2, and 1.0.3. Verify package authenticity before installation and consider using trusted package sources or alternatives. Monitor for any updates or advisories from the package maintainers or npm security teams for remediation guidance.

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

Threat ID: 6a9ad4ecacd9273b49b677bc

Added to database: 09/04/2026, 14:25:48 UTC

Last enriched: 09/07/2026, 17:38:27 UTC

Last updated: 10/04/2026, 06:36:27 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