Malicious Code Vulnerability in constitutional_lark_z3n: Exploitation of npm Registry
Summary
MAL-2025-93752: Malicious code in constitutional_lark_z3n (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The package 'constitutional_lark_z3n' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The malicious nature of this package lies in its ability to modify critical files and republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in 'constitutional_lark_z3n' originates from its association with a malicious campaign that utilizes autopublish scripts to alter the package.json file. This modification removes private flags, changes version numbers, and generates random package names, leading to a significant risk of reputation damage for developers and potential security threats for users. The continuous republishing of these variants can clutter the npm registry and make it difficult to identify legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall constitutional_lark_z3n
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can avoid using the 'constitutional_lark_z3n' package and monitor your project for any dependencies that may have inadvertently included it. Regularly check your package-lock.json file for any suspicious entries.
Conclusion
The 'constitutional_lark_z3n' package poses a significant risk due to its malicious code designed to manipulate npm registry entries. It is crucial for developers to remove this package from their projects and utilize tools like Vulert to monitor for vulnerabilities effectively.
See every vulnerability recorded for constitutional_lark_z3n →
FAQ
It is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through automated publishing of derivative packages.
The vulnerability can lead to the modification of your package.json file, potentially exposing your project to security risks and reputation damage.
You should uninstall the package immediately using 'npm uninstall constitutional_lark_z3n' and check your project for any other affected dependencies.
Yes, you can use Vulert, which monitors your package-lock.json to alert you in real-time for open-source vulnerabilities without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without any signup.