Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. node-stringbuilder
  4. ›
  5. CVE-2024-21524

CVE-2024-21524: node-stringbuilder vulnerable to Out-of-bounds Read

July 10, 2024

All versions of the package node-stringbuilder are vulnerable to Out-of-bounds Read due to incorrect memory length calculation, by calling ToBuffer, ToString, or CharAt on a StringBuilder object with a non-empty string value input. It’s possible to return previously allocated memory, for example, by providing negative indexes, leading to an Information Disclosure.

References

  • gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67
  • github.com/advisories/GHSA-g533-xq5w-jmf3
  • github.com/magiclen/node-stringbuilder
  • github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c
  • nvd.nist.gov/vuln/detail/CVE-2024-21524
  • security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617

Code Behaviors & Features

Detect and mitigate CVE-2024-21524 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 up to 2.2.7

Solution

Unfortunately, there is no solution available yet.

Impact 9.1 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read

Source file

npm/node-stringbuilder/CVE-2024-21524.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:41 +0000.