CVE-2022-4111: Tooljet Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-hgp8-w8fj-r4cm
CVSS 6.5
CWE-400 CWE-1284
Published
Advisory Summary

CVE-2022-4111 is a MODERATE (CVSS 6.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Tooljet libraries in the npm ecosystem. The issue involves tooljet is vulnerable to denial of service (dos). Remediation is available by upgrading affected packages to version 1.27.0.

CVE-2022-4111 at a Glance

CVE Identifier CVE-2022-4111
GHSA Identifier GHSA-hgp8-w8fj-r4cm
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Tooljet
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-4111

To remediate this vulnerability, upgrade all affected Tooljet dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

tooljet fixed: 1.27.0
npm install tooljet@1.27.0
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 tooljet

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2022-4111, inspect your project dependencies using npm:

npm ls tooljet

Analyze the terminal output to locate any version of Tooljet in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.27.0), your application is affected.

Note: The npm ls tooljet 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Tooljet, 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

ToolJet/ToolJet placed no limit on the file size for user avatars. This could cause a denial of service if too many users upload large files. This is fixed in commit 01cd3f0464747973ec329e9fb1ea12743d3235cc in version 1.27.0. `tooljet` is no longer listed on npmjs.com but was [listed on npmjs.com in the past](https://web.archive.org/web/20220210014826/https://www.npmjs.com/package/tooljet). This advisory is maintained for historical completeness.

CVE-2022-4111 Affected Tooljet Versions

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

References

Frequently Asked Questions

What is CVE-2022-4111?
CVE-2022-4111 is a security vulnerability in Tooljet involving ToolJet is vulnerable to Denial of Service (DoS) under CWE-400: Uncontrolled Resource Consumption.
Which Tooljet versions are affected?
Affected versions include releases prior to 1.27.0 across affected packages: tooljet.
What version fixes CVE-2022-4111?
Upgrading to 1.27.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tooljet affected?
Yes, tooljet is affected in releases prior to 1.27.0. Upgrade your dependency to 1.27.0 or later.
What is the CVSS score of CVE-2022-4111?
CVE-2022-4111 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-4111?
CVE-2022-4111 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2022-4111?
Run the dependency tree command: 'npm ls tooljet'. 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-hgp8-w8fj-r4cm",
  "modified" : "2023-07-11T13:52:18Z",
  "published" : "2022-11-22T03:30:56Z",
  "aliases" : [ "CVE-2022-4111" ],
  "summary" : "ToolJet is vulnerable to Denial of Service (DoS)",
  "details" : "ToolJet/ToolJet placed no limit on the file size for user avatars. This could cause a denial of service if too many users upload large files. This is fixed in commit 01cd3f0464747973ec329e9fb1ea12743d3235cc in version 1.27.0.\n\n`tooljet` is no longer listed on npmjs.com but was [listed on npmjs.com in the past](https://web.archive.org/web/20220210014826/https://www.npmjs.com/package/tooljet). This advisory is maintained for historical completeness.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "tooljet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.27.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-4111"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ToolJet/ToolJet/pull/4103"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tooljet/tooljet/commit/01cd3f0464747973ec329e9fb1ea12743d3235cc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ToolJet/ToolJet"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/5596d072-66d2-4361-8cac-101c9c781c3d"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1284", "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-02T22:38:23Z",
    "nvd_published_at" : "2022-11-22T03:15:00Z"
  }
}