Malicious code in custom-cafe-pdf (npm)

custom-cafe-pdf Updated 02 Oct 2025

Summary

30/11/2023
CRITICAL
No i
Critical
Not published

MAL-2023-8644: Malicious code in custom-cafe-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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The custom-cafe-pdf package is an npm package that provides functionality for generating custom PDF files. It is commonly used in applications that require PDF generation capabilities. However, this 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 custom-cafe-pdf has been identified as a serious threat. Any computer with this package installed should be considered fully compromised. It is advised to rotate all secrets and keys stored on the affected computer immediately from a different computer. Simply removing the package may not be sufficient, as there is no guarantee that all malicious software resulting from its installation will be removed.

How To Fix

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

npm uninstall custom-cafe-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

Unfortunately, there is no known workaround for this vulnerability. It is crucial to take immediate action to mitigate the risk and follow the recommended steps for fixing the issue.

Conclusion

The presence of malicious code in the custom-cafe-pdf npm package poses a significant security risk. It is crucial to take immediate action by rotating secrets and keys, removing the package, and conducting a security audit. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for custom-cafe-pdf →

Share this vulnerability

FAQ

Custom-cafe-pdf is an npm package used for generating custom PDF files in applications.

The malicious code compromises the security of the affected computer, giving control to an outside entity. All secrets and keys stored on the computer should be rotated immediately.

Removing the package may not guarantee the removal of all malicious software. A thorough security audit is recommended to identify and address any other potential compromises.

If you have custom-cafe-pdf installed, it is crucial to rotate all secrets and keys stored on your computer from a different, secure computer. Remove the package and perform a security audit.

Performing a thorough security audit is essential to identify any other potential compromises or vulnerabilities on your computer.

How To Fix

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

npm uninstall custom-cafe-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