Out-of-Bounds Read Vulnerability in Node.js stringstream

stringstream Updated 02 Oct 2025

Summary

06/01/2022
MODERATE
Yes i
Moderate
6.5

GHSA-qpw2-xchm-655q: Out-of-Bounds read in stringstream. Affects stringstream versions < 0.0.6. Fixed in 0.0.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The stringstream module is an npm package used in Node.js applications for handling streams of data. It provides functionality for reading and writing data to streams. However, versions prior to 0.0.6 of the stringstream module are vulnerable to an out-of-bounds read issue. This vulnerability occurs when uninitialized buffers are allocated in the input stream, specifically when a number is passed in the stream. This vulnerability affects applications using Node.js 4.x.

Vulnerability Detail

The out-of-bounds read vulnerability in the stringstream module can lead to potential security risks. An attacker could exploit this vulnerability to read sensitive information from memory or cause a denial-of-service by crashing the application. The vulnerability is rated as moderate severity with a CVSS score of 6.5. The Common Weakness Enumeration (CWE) ID associated with this vulnerability is CWE-125.

How To Fix

Minimum fixed version

0.0.6

This is the first release that contains the fix.

npm install stringstream@0.0.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended solution is to upgrade to a fixed version of the stringstream module.

Conclusion

The out-of-bounds read vulnerability in the stringstream module of Node.js can pose security risks to applications using Node.js 4.x. It is crucial to upgrade to version 0.0.6 or higher of the stringstream module to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for stringstream →

Share this vulnerability

FAQ

The vulnerability can allow an attacker to read sensitive information from memory or cause a denial-of-service by crashing the application.

This vulnerability affects applications using Node.js 4.x.

The vulnerability is rated as moderate severity with a CVSS score of 6.5.

There is no specific workaround mentioned for this vulnerability. The recommended solution is to upgrade to a fixed version of the stringstream module.

To fix this vulnerability, it is recommended to upgrade the stringstream module to version 0.0.6 or higher. This can be done by updating the package.json file of the Node.js application and running the package manager to install the latest version of the module. For example, using npm, the command would be: npm install stringstream@0.0.6

Related vulnerabilities

Recent vulnerabilities recorded for stringstream.

How To Fix

Minimum fixed version

0.0.6

This is the first release that contains the fix.

npm install stringstream@0.0.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback