Malicious Code Exploit in gulp-javascript-carpo-markdown-pdf Package

Summary

13/11/2025
CRITICAL
No i
Critical
Not published

MAL-2025-187251: Malicious code in gulp-javascript-carpo-markdown-pdf (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 gulp-javascript-carpo-markdown-pdf package is a JavaScript library commonly used in Node.js applications for converting Markdown files to PDF format. It serves as a tool for developers looking to streamline their documentation processes. However, this package has been identified as part of a malicious campaign that exploits npm's package management system, leading to significant security concerns.

Vulnerability Detail

The vulnerability originates from the package being associated with the tea.xyz token reward campaign, which has been known to flood npm with malicious packages. The malicious code within gulp-javascript-carpo-markdown-pdf modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the pollution of the npm registry. This can result in compromised developer reputations and potential security risks for applications relying on this package.

How To Fix

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

npm uninstall gulp-javascript-carpo-markdown-pdf

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 gulp-javascript-carpo-markdown-pdf package altogether and look for alternative libraries that offer similar Markdown to PDF conversion capabilities. Additionally, you can monitor your package-lock.json file for any unauthorized changes.

Conclusion

The gulp-javascript-carpo-markdown-pdf package has been identified as containing malicious code that poses significant security risks. It is essential for developers to take immediate action by uninstalling the package and exploring safer alternatives. Continuous monitoring of dependencies is crucial to maintaining the security of your applications.

See every vulnerability recorded for gulp-javascript-carpo-markdown-pdf →

Share this vulnerability

FAQ

It is a JavaScript library used for converting Markdown files to PDF format in Node.js applications.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.

You should uninstall the package immediately and look for alternative solutions to avoid potential security risks.

Yes, the consequences include compromised developer reputations, unauthorized modifications to your project, and potential security breaches.

Regularly monitor your dependencies using tools like Vulert, and ensure to audit your packages for any known vulnerabilities before integrating them into your projects.

How To Fix

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

npm uninstall gulp-javascript-carpo-markdown-pdf

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