Malicious Code Injection in hjnxmk-devapptea: npm Package Vulnerability
Summary
MAL-2025-103736: Malicious code in hjnxmk-devapptea (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 hjnxmk-devapptea package is part of the tea.xyz token reward campaign, which has been known to flood the npm ecosystem with malicious packages. These packages are designed to inflate developer reputation scores through automated publishing scripts. The hjnxmk-devapptea package specifically contains scripts that modify package.json files and republish variants to pollute the npm registry.
Vulnerability Detail
The vulnerability in hjnxmk-devapptea originates from its malicious code that alters the package.json file by removing private flags and changing version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants. This behavior not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly use these compromised packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hjnxmk-devapptea
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 workaround, you can manually remove the hjnxmk-devapptea package from your project by running the command: npm uninstall hjnxmk-devapptea. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities in real-time.
Conclusion
The hjnxmk-devapptea package poses a significant security risk due to its malicious code that alters package configurations and republish variants. It is crucial for developers to remove this package and monitor their projects for vulnerabilities to maintain the integrity of their applications.
See every vulnerability recorded for hjnxmk-devapptea →
FAQ
hjnxmk-devapptea is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through automated publishing.
The vulnerability can lead to the introduction of malicious code into your project, compromising its security and integrity.
You should uninstall the hjnxmk-devapptea package immediately and monitor your project for any further vulnerabilities.
You can use Vulert, which allows you to monitor and alert for open-source vulnerabilities in your software using just the package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.