Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. mariadb
  4. ›
  5. CVE-2026-107383

CVE-2026-107383: MariaDB Connector/Node.js exposes uninitialized process memory through malformed GeoJSON parameters

October 8, 2026

When encoding a GeoJSON Polygon or MultiPolygon parameter for the binary protocol, the connector sized its output buffer from the length property of each ring, then wrote each ring only if it was a real array. The two loops disagreed: any non-array ring carrying a numeric length (a string, or an object such as {“length”: 4000}) still reserved 4 + 16 * length bytes, but wrote none of them. The buffer came from Buffer.allocUnsafe() and was returned in full regardless of how far the write position had advanced, so every reserved-but-unwritten byte was uninitialized Node.js heap.

The sibling LineString case handled this correctly, aborting with null on the first malformed point, so no reserved byte could escape unwritten.

The only gate on this path is value.type naming a GeoJSON type, so any object shaped like {“type”: “Polygon”, …} reached the encoder.

References

  • github.com/advisories/GHSA-48qf-xh34-q73r
  • github.com/mariadb-corporation/mariadb-connector-nodejs/commit/2314c03b785db482599d2befd06f4992e5fc46b3
  • github.com/mariadb-corporation/mariadb-connector-nodejs/commit/a4aa048b57dc47309b80e5cc25a4a8eedb32fd9f
  • github.com/mariadb-corporation/mariadb-connector-nodejs/commit/b2ca628864b0fc2e3e94ea96910f6b693ad5bd30
  • github.com/mariadb-corporation/mariadb-connector-nodejs/commit/faa27d1b2b7753a54000f586d5148089b60d1284
  • github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.2.5
  • github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.3.4
  • github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.4.7
  • github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.5.4
  • github.com/mariadb-corporation/mariadb-connector-nodejs/security/advisories/GHSA-48qf-xh34-q73r
  • jira.mariadb.org/browse/CONJS-367
  • nvd.nist.gov/vuln/detail/CVE-2026-107383

Code Behaviors & Features

Detect and mitigate CVE-2026-107383 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.2.5, all versions starting from 3.3.0 before 3.3.4, all versions starting from 3.4.0 before 3.4.7, all versions starting from 3.5.0-rc.0 before 3.5.4

Fixed versions

  • 3.2.5
  • 3.3.4
  • 3.4.7
  • 3.5.4

Solution

Upgrade to versions 3.2.5, 3.3.4, 3.4.7, 3.5.4 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

npm/mariadb/CVE-2026-107383.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:16 +0000.