Malicious Code Injection in ninakusuma: A Threat to npm Packages

ninakusuma Updated 26 Nov 2025

Summary

12/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-171658: Malicious code in ninakusuma (npm). Affected versions are not published. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Ninakusuma is an npm package that has been identified as part of a larger scheme involving the tea.xyz token reward campaign. This campaign has led to the proliferation of numerous npm packages that are designed to manipulate developer reputation scores by automatically generating and publishing derivative packages. The ninakusuma package, like others in this campaign, contains scripts that can alter its own metadata and republish itself under various names, potentially leading to a polluted npm registry.

Vulnerability Detail

The vulnerability in the ninakusuma package stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior not only compromises the integrity of the package itself but also poses a risk to the broader npm ecosystem by flooding it with potentially harmful packages. The malicious payload is designed to continuously republish variants, which can confuse developers and lead to unintentional usage of compromised packages.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall ninakusuma

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 measure, you can avoid using the ninakusuma package and any other packages associated with the tea.xyz campaign. If you have already installed it, you can remove it using the command: npm uninstall ninakusuma.

Conclusion

The ninakusuma package poses a significant risk due to its malicious behavior linked to the tea.xyz token reward campaign. It is crucial for developers to be aware of such vulnerabilities and take proactive measures to secure their projects by removing affected packages and utilizing monitoring tools like Vulert.

See every vulnerability recorded for ninakusuma →

Share this vulnerability

FAQ

Ninakusuma is an npm package that has been linked to a malicious campaign aimed at manipulating developer reputation scores through the creation of derivative packages.

The vulnerability can lead to the introduction of malicious code into your project, potentially compromising its security and integrity.

You should uninstall the ninakusuma package immediately using the command: npm uninstall ninakusuma.

Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities using the Vulert playground without any signup.

Regularly update your dependencies, monitor for security advisories, and utilize tools like Vulert to keep track of vulnerabilities in your packages.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall ninakusuma

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback