node-stringbuilder vulnerable to Out-of-bounds Read
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | node-stringbuilder | <= 2.2.7 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21524
- https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67
- https://github.com/magiclen/node-stringbuilder
- https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c#L1281
- https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H- Weakness (CWE)
CWE-125- Platform
- npm
- Package
node-stringbuilder- Disclosed
- 10.07.2024
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-g533-xq5w-jmf3 - CC BY 4.0
Vulnerability history: node-stringbuilder
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.