Malicious Code Injection in smart_alpaca-appteadev: A Threat to npm Ecosystem

smart_alpaca-appteadev Updated 18 Nov 2025

Summary

11/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-108857: Malicious code in smart_alpaca-appteadev (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

The smart_alpaca-appteadev package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to the proliferation of malicious packages designed to inflate developer reputation scores. The package's functionality is compromised by the presence of malicious scripts that manipulate its metadata and behavior.

Vulnerability Detail

The vulnerability stems from the inclusion of malicious code within the smart_alpaca-appteadev package. This code is designed to automatically modify the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants to pollute the npm registry, posing a significant risk to developers and users who rely on the integrity of npm packages. The origin of this issue is traced back to the tea.xyz token reward campaign, which has flooded the npm ecosystem with such malicious packages.

How To Fix

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

npm uninstall smart_alpaca-appteadev

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 smart_alpaca-appteadev package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your npm packages using tools like npm audit to identify and mitigate vulnerabilities.

Conclusion

The smart_alpaca-appteadev package poses a significant risk due to its malicious code designed to manipulate npm package metadata. It is crucial for developers to be vigilant and take immediate action to remove the affected package and monitor their dependencies for vulnerabilities.

See every vulnerability recorded for smart_alpaca-appteadev →

Share this vulnerability

FAQ

The malicious code modifies package metadata and republishes variants to inflate developer reputation scores.

You can use Vulert's playground at Vulert Scanner to check for vulnerabilities in your application without needing to sign up.

You should uninstall the smart_alpaca-appteadev package immediately and monitor for any updates or patches.

Yes, Vulert provides real-time monitoring and alerts for open-source vulnerabilities using just your package-lock.json.

Failing to address this vulnerability could lead to compromised application integrity, unauthorized access, and potential exploitation of your software.

How To Fix

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

npm uninstall smart_alpaca-appteadev

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