CVE-2024-14020: Carbone Carbone Code Injection Vulnerability Vulnerability
LOWCVE-2024-14020 is a LOW (CVSS 5.0) carbone code injection vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Carbone libraries in the npm ecosystem. The issue involves carbone code injection vulnerability. Remediation is available by upgrading affected packages to version 3.5.6.
CVE-2024-14020 at a Glance
Security Impact
CVSS: 5.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2024-14020
To remediate this vulnerability, upgrade all affected Carbone dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install carbone@3.5.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls carbone
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-14020, inspect your project dependencies using npm:
npm ls carbone
Analyze the terminal output to locate any version of Carbone in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.5.6), your application is affected.
Note: The npm ls carbone command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Carbone, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-14020 Affected Carbone Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
carbone
|
npm |
< 3.5.6
|
3.5.6
|
References
Frequently Asked Questions
What is CVE-2024-14020?
Which Carbone versions are affected?
What version fixes CVE-2024-14020?
Is carbone affected?
What is the CVSS score of CVE-2024-14020?
What CWE is associated with CVE-2024-14020?
How can I check npm dependencies for CVE-2024-14020?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6rcw-ww3x-xqwm",
"modified" : "2026-01-07T19:30:26Z",
"published" : "2026-01-07T12:31:19Z",
"aliases" : [ "CVE-2024-14020" ],
"summary" : "carbone Code Injection vulnerability",
"details" : "A weakness has been identified in carboneio carbone up to fbcd349077ad0e8748be73eab2a82ea92b6f8a7e. This impacts an unknown function of the file lib/input.js of the component Formatter Handler. Executing a manipulation can lead to improperly controlled modification of object prototype attributes. The attack can be launched remotely. This attack is characterized by high complexity. The exploitability is said to be difficult. Upgrading to version 3.5.6 will fix this issue. This patch is called 04f9feb24bfca23567706392f9ad2c53bbe4134e. You should upgrade the affected component. A successful exploitation can \"only occur if the parent NodeJS application has the same security issue\".",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "carbone"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.5.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-14020"
}, {
"type" : "WEB",
"url" : "https://github.com/carboneio/carbone/commit/04f9feb24bfca23567706392f9ad2c53bbe4134e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/carboneio/carbone"
}, {
"type" : "WEB",
"url" : "https://github.com/carboneio/carbone/releases/tag/3.5.6"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.339503"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.339503"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-07T19:30:26Z",
"nvd_published_at" : "2026-01-07T12:16:44Z"
}
}