MAL-2026-10088: Malicious code in lovable-tager (npm)
The npm package 'lovable-tager' is a typosquatting malicious package impersonating the legitimate 'lovable-tagger' Vite plugin. Its ESM build contains obfuscated malicious code appended after the clean plugin code, which executes attacker-controlled code when loaded in a Node environment. This code can access require, filesystem, and network capabilities of the build host. The CommonJS build does not contain this payload, indicating the malicious code was added post-build and hidden via tab padding. Versions 1.4.0 and 1.4.1 are affected.
AI Analysis
Technical Summary
'lovable-tager' is a single-character typo-squatted npm package targeting users intending to use the legitimate 'lovable-tagger' Vite plugin. The ESM entry point (dist/index.js) includes a large amount of tab padding followed by an obfuscated Immediately Invoked Function Expression (IIFE) that, upon module load, exposes Node.js internals such as require, __dirname, and __filename, reconstructs Function via obfuscated means, and executes attacker-supplied code. The malicious payload is absent from the CommonJS build (dist/index.cjs), indicating it was smuggled into the published tarball after the build process. Any project that mistakenly includes 'lovable-tager' in its Vite configuration will execute this malicious code in the developer's Node process, potentially compromising the build environment.
Potential Impact
Execution of attacker-controlled code occurs in the Node.js process at plugin load time, allowing access to require, filesystem, and network capabilities on the build host. This can lead to arbitrary code execution, data exfiltration, or further compromise of the development environment. The malicious code is triggered simply by including the mistyped package in a Vite configuration.
Mitigation Recommendations
No official patch or fix is currently available. Users should avoid installing or including the 'lovable-tager' package, especially versions 1.4.0 and 1.4.1. Verify package names carefully to prevent typosquatting attacks. Replace any usage of 'lovable-tager' with the legitimate 'lovable-tagger' package. Monitor dependency manifests and lockfiles for suspicious or unexpected packages. Since this is a malicious package published to npm, removing it from the dependency tree and reinstalling dependencies from trusted sources is recommended.
MAL-2026-10088: Malicious code in lovable-tager (npm)
Description
The npm package 'lovable-tager' is a typosquatting malicious package impersonating the legitimate 'lovable-tagger' Vite plugin. Its ESM build contains obfuscated malicious code appended after the clean plugin code, which executes attacker-controlled code when loaded in a Node environment. This code can access require, filesystem, and network capabilities of the build host. The CommonJS build does not contain this payload, indicating the malicious code was added post-build and hidden via tab padding. Versions 1.4.0 and 1.4.1 are affected.
Affected software
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
Technical Analysis
'lovable-tager' is a single-character typo-squatted npm package targeting users intending to use the legitimate 'lovable-tagger' Vite plugin. The ESM entry point (dist/index.js) includes a large amount of tab padding followed by an obfuscated Immediately Invoked Function Expression (IIFE) that, upon module load, exposes Node.js internals such as require, __dirname, and __filename, reconstructs Function via obfuscated means, and executes attacker-supplied code. The malicious payload is absent from the CommonJS build (dist/index.cjs), indicating it was smuggled into the published tarball after the build process. Any project that mistakenly includes 'lovable-tager' in its Vite configuration will execute this malicious code in the developer's Node process, potentially compromising the build environment.
Potential Impact
Execution of attacker-controlled code occurs in the Node.js process at plugin load time, allowing access to require, filesystem, and network capabilities on the build host. This can lead to arbitrary code execution, data exfiltration, or further compromise of the development environment. The malicious code is triggered simply by including the mistyped package in a Vite configuration.
Mitigation Recommendations
No official patch or fix is currently available. Users should avoid installing or including the 'lovable-tager' package, especially versions 1.4.0 and 1.4.1. Verify package names carefully to prevent typosquatting attacks. Replace any usage of 'lovable-tager' with the legitimate 'lovable-tagger' package. Monitor dependency manifests and lockfiles for suspicious or unexpected packages. Since this is a malicious package published to npm, removing it from the dependency tree and reinstalling dependencies from trusted sources is recommended.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10088
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba8768715ace43581c1f
Added to database: 07/10/2026, 09:25:27 UTC
Last enriched: 07/10/2026, 10:05:33 UTC
Last updated: 07/10/2026, 10:05:33 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.