Malicious Code Detected in dotenv-safe-titan-terser-markdown Package

Summary

14/08/2025
CRITICAL
No i
Critical
Not published

MAL-2025-18672: Malicious code in dotenv-safe-titan-terser-markdown (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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The dotenv-safe-titan-terser-markdown package is an npm module designed to enhance the functionality of environment variable management in Node.js applications. It allows developers to ensure that all required environment variables are defined and provides a mechanism for safe loading of these variables. However, this package has been identified to contain malicious code, posing a significant risk to applications that utilize it.

Vulnerability Detail

The vulnerability originates from the inclusion of malicious code within the dotenv-safe-titan-terser-markdown package. This code can potentially compromise the security of applications by allowing unauthorized access to sensitive data or executing harmful operations. The malicious nature of this code can lead to data breaches, loss of integrity, and other severe consequences for affected systems.

How To Fix

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

npm uninstall dotenv-safe-titan-terser-markdown

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 dotenv-safe-titan-terser-markdown package altogether and manually manage your environment variables without this package. For example, you can use the dotenv package instead, which is widely trusted and does not contain known vulnerabilities. Install it using: npm install dotenv.

Conclusion

The dotenv-safe-titan-terser-markdown package has been identified as containing malicious code, posing significant risks to applications that utilize it. It is crucial to remove this package and consider secure alternatives to safeguard your application. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your software.

See every vulnerability recorded for dotenv-safe-titan-terser-markdown →

Share this vulnerability

FAQ

It is an npm package used for managing environment variables in Node.js applications.

The package contains code that can compromise application security, potentially leading to unauthorized access to sensitive data.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Check your application using the Vulert playground at Vulert Scanner.

Yes, the dotenv package is a widely trusted alternative for managing environment variables without the associated risks.

Remove the dotenv-safe-titan-terser-markdown package from your project and replace it with a secure alternative like dotenv.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

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

npm uninstall dotenv-safe-titan-terser-markdown

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