Malicious Code in gradient-tiny (npm)

gradient-tiny Updated 02 Oct 2025

Summary

27/06/2024
CRITICAL
No i
Critical
Not published

MAL-2024-1673: Malicious code in gradient-tiny (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

gradient-tiny is an npm package that provides functionality for creating gradients in web applications. It is commonly used in front-end development to add visual effects to websites. The package allows developers to easily generate CSS code for creating gradients with different colors and styles. However, the package has been found to contain malicious code, which poses a significant security risk to any computer that has it installed or running.

Vulnerability Detail

The malicious code in gradient-tiny (npm) was discovered in version 0 and has been classified as a high-severity vulnerability. The code is designed to compromise the security of the affected computer, giving full control to an external entity. As a result, all secrets and keys stored on the compromised computer should be rotated immediately from a different computer. Simply removing the package may not guarantee the removal of all malicious software installed as a result of its installation. Therefore, it is crucial to take immediate action to mitigate the potential impact of this vulnerability.

How To Fix

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

npm uninstall gradient-tiny

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 →

Conclusion

The presence of malicious code in the gradient-tiny npm package poses a significant security risk to any computer that has it installed or running. It is crucial to take immediate action to rotate secrets and keys, remove the package, and conduct a thorough security audit. Regular software updates and adherence to secure coding practices are essential to prevent similar vulnerabilities in the future.

See every vulnerability recorded for gradient-tiny →

Share this vulnerability

FAQ

gradient-tiny is an npm package used for generating CSS code for creating gradients in web applications.

The malicious code in gradient-tiny compromises the security of the affected computer, giving full control to an external entity. This can lead to unauthorized access, data breaches, and potential loss of sensitive information.

If you have gradient-tiny installed, it is recommended to immediately rotate all secrets and keys stored on the affected computer from a different, secure computer. Remove the gradient-tiny package and conduct a thorough security audit to ensure no other malicious software or code is present.

While removing the gradient-tiny package is a necessary step, it may not guarantee the complete removal of all malicious software installed as a result of its installation. It is crucial to conduct a thorough security audit to ensure the system is clean.

To prevent similar vulnerabilities, it is important to regularly update and patch all software and packages. Stay informed about security advisories and follow best practices for secure coding and package management.

How To Fix

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

npm uninstall gradient-tiny

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