CVE-2018-21270
MEDIUM 6.5CVSS 3.1Out-of-bounds Read in stringstream
Versions less than 0.0.6 of the Node.js stringstream module are vulnerable to an out-of-bounds read because of allocation of uninitialized buffers when a number is passed in the input stream (when using Node.js 4.x).
- Published
- 3 Dec 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-125
- Also known as
- GHSA-mf6x-7mm4-x2g7
- Sources
- NVDJSONOSV GHSA-mf6x-7mm4-x2g7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nodejs | node.jscpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* |
< 0.0.6 | 0.0.6 |
| OSV | npm | stringstream | < 0.0.6 | 0.0.6 |
References
- https://github.com/mhart/StringStream/issues/7 · Issue Tracking, Third Party Advisory
- https://hackerone.com/reports/321670 · Exploit, Third Party Advisory, WEB
- https://www.npmjs.com/advisories/664 · Exploit, Third Party Advisory, WEB
- https://github.com/mhart/StringStream/blob/v0.0.5/stringstream.js#L32 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 3 Dec 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Jun 2019)