Malicious Code Exploit in gulp-javascript-carpo-markdown-pdf Package
Summary
MAL-2025-187251: Malicious code in gulp-javascript-carpo-markdown-pdf (npm). Affected versions are not published. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.