CVE-2024-14020: Carbone Code Injection Vulnerability

carbone Updated 03 Feb 2026

Summary

07/01/2026
Yes i
Low
5.0

CVE-2024-14020: carbone Code Injection vulnerability. Affects carbone versions < 3.5.6. Fixed in 3.5.6. 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

Carbone is an open-source library designed for generating documents from templates in various formats such as PDF, HTML, and others. It is widely used in Node.js applications to automate document creation. The library provides a flexible and powerful API, allowing developers to create complex documents with ease. However, a recent vulnerability has been identified that could allow attackers to manipulate object prototype attributes, potentially compromising the security of applications using this library.

Vulnerability Detail

A code injection vulnerability has been discovered in the Carbone library, specifically in the Formatter Handler component located in lib/input.js. This vulnerability arises from improper control over object prototype attributes, which can be exploited remotely. The complexity of the attack is high, and while the exploitability is considered difficult, it poses a significant risk if the parent Node.js application shares the same security flaw. Successful exploitation could lead to unauthorized modifications and potential data breaches.

How To Fix

Minimum fixed version

3.5.6

This is the first release that contains the fix.

npm install carbone@3.5.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to upgrade to the patched version of the Carbone library.

Conclusion

The Carbone library has a critical code injection vulnerability (CVE-2024-14020) that can affect applications using it. Upgrading to version 3.5.6 is essential to secure your application against potential exploitation. Regular monitoring of your dependencies using tools like Vulert can help maintain the security of your software.

See every vulnerability recorded for carbone →

Share this vulnerability

FAQ

CVE-2024-14020 is a code injection vulnerability found in the Carbone library that can lead to unauthorized modifications of object prototype attributes.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your package-lock.json without any signup.

Exploitation of this vulnerability could allow attackers to manipulate object prototype attributes, leading to potential data breaches and unauthorized access to sensitive information.

Yes, upgrading to Carbone version 3.5.6 or later will patch the vulnerability.

While there are no specific workarounds, it is crucial to prioritize upgrading to the patched version as soon as possible to mitigate the risk.

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

Minimum fixed version

3.5.6

This is the first release that contains the fix.

npm install carbone@3.5.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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