CVE-2024-14020: Carbone Carbone Code Injection Vulnerability Vulnerability

LOW
Advisory Identifier: GHSA-6rcw-ww3x-xqwm
CVSS 5.0
CWE-94
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-14020
GHSA Identifier GHSA-6rcw-ww3x-xqwm
Severity LOW
CVSS v3.1 Base Score 5.0
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Carbone
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

carbone fixed: 3.5.6
npm install carbone@3.5.6
Verify Direct and Transitive Dependencies

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

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".

CVE-2024-14020 Affected Carbone Versions

1 component(s)
Fixed Versions:
3.5.6
Product / Package Ecosystem Affected Versions Fixed Version
carbone
npm
< 3.5.6
3.5.6

References

Frequently Asked Questions

What is CVE-2024-14020?
CVE-2024-14020 is a security vulnerability in Carbone involving carbone Code Injection vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Carbone versions are affected?
Affected versions include releases prior to 3.5.6 across affected packages: carbone.
What version fixes CVE-2024-14020?
Upgrading to 3.5.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is carbone affected?
Yes, carbone is affected in releases prior to 3.5.6. Upgrade your dependency to 3.5.6 or later.
What is the CVSS score of CVE-2024-14020?
CVE-2024-14020 has a CVSS v3.1 base score of 5.0 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-14020?
CVE-2024-14020 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check npm dependencies for CVE-2024-14020?
Run the dependency tree command: 'npm ls carbone'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}