CVE-2023-5104: Nocodb Improper Input Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-xrpm-hccg-28x7
CVSS 6.5
CWE-20
Published
Advisory Summary

CVE-2023-5104 is a MODERATE (CVSS 6.5) improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Nocodb libraries in the npm ecosystem. The issue involves improper input validation in nocodb. Remediation is available by upgrading affected packages to version 0.96.0.

CVE-2023-5104 at a Glance

CVE Identifier CVE-2023-5104
GHSA Identifier GHSA-xrpm-hccg-28x7
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Nocodb
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:N/UI:R/S:U/C:N/I:N/A:H).

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

How to Fix CVE-2023-5104

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

nocodb fixed: 0.96.0
npm install nocodb@0.96.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 nocodb

How to Check if You Are Affected

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

npm ls nocodb

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

Note: The npm ls nocodb 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Nocodb, 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

Improper Input Validation in GitHub repository nocodb/nocodb prior to 0.96.0.

CVE-2023-5104 Affected Nocodb Versions

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

References

Frequently Asked Questions

What is CVE-2023-5104?
CVE-2023-5104 is a security vulnerability in Nocodb involving Improper Input Validation in nocodb under CWE-20: Improper Input Validation.
Which Nocodb versions are affected?
Affected versions include releases prior to 0.96.0 across affected packages: nocodb.
What version fixes CVE-2023-5104?
Upgrading to 0.96.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nocodb affected?
Yes, nocodb is affected in releases prior to 0.96.0. Upgrade your dependency to 0.96.0 or later.
What is the CVSS score of CVE-2023-5104?
CVE-2023-5104 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-5104?
CVE-2023-5104 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check npm dependencies for CVE-2023-5104?
Run the dependency tree command: 'npm ls nocodb'. 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-xrpm-hccg-28x7",
  "modified" : "2023-09-22T19:35:43Z",
  "published" : "2023-09-21T09:30:19Z",
  "aliases" : [ "CVE-2023-5104" ],
  "summary" : "Improper Input Validation in nocodb",
  "details" : "Improper Input Validation in GitHub repository nocodb/nocodb prior to 0.96.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "nocodb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.96.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-5104"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nocodb/nocodb/commit/db0385cb8aab2a34e233454607f59152ac62b3e2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nocodb/nocodb"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/1b5c6d9f-941e-4dd7-a964-42b53d6826b0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-21T17:17:16Z",
    "nvd_published_at" : "2023-09-21T09:15:10Z"
  }
}