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 devplatform-vite-plugin-preserve-css-modules (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 15:29:25 UTC)
Source: GCVE Database
Product: devplatform-vite-plugin-preserve-css-modules

Description

The npm package devplatform-vite-plugin-preserve-css-modules version 35.6.8 contains malicious code that, upon being required, downloads and executes a native binary from obfuscated and covert-channel fallback hosts. This binary is saved under disguised filenames in temporary directories and executed detached from the main process. The package masquerades as a legitimate vite plugin but performs unauthorized remote code execution on the installer's machine.

Affected software

npmghsa
devplatform-vite-plugin-preserve-css-modules
Affected versions
=35.6.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, 21:48:13 UTC

Technical Analysis

The devplatform-vite-plugin-preserve-css-modules npm package (version 35.6.8) includes malicious functionality triggered on require(). It loads a loader script that dynamically constructs obfuscated hostnames to download a native binary over HTTPS, with a DNS TXT record fallback mechanism for covert communication. The binary is saved to temporary directories with disguised names, permissions are set to executable, and it is spawned detached via shell commands. Execution is controlled by a TTL marker file. This behavior enables arbitrary native code execution on the host machine without user consent. The package name is crafted to appear as a legitimate vite plugin, facilitating supply chain compromise through npm.

Potential Impact

This malicious package enables arbitrary native code execution on any system that installs and requires version 35.6.8 of devplatform-vite-plugin-preserve-css-modules. The attacker can execute arbitrary binaries downloaded from attacker-controlled infrastructure, potentially leading to full system compromise. The covert DNS TXT fallback and obfuscated hostnames increase stealth and complicate detection. There is no indication of active exploitation in the wild yet, but the risk of supply chain compromise is significant.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should immediately avoid installing or requiring devplatform-vite-plugin-preserve-css-modules version 35.6.8. Remove any installations of this package from projects and dependency trees. Monitor for any unexpected network connections to the described domains and for suspicious binaries in temporary directories. Consider using npm security tools to audit dependencies and block malicious packages. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.

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

Threat ID: 6a73852ebf8831d5394f05c3

Added to database: 08/05/2026, 18:47:10 UTC

Last enriched: 08/05/2026, 21:48:13 UTC

Last updated: 08/05/2026, 21:48:13 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