Out-of-bounds Read in npmconf

npmconf Updated 02 Oct 2025

Summary

12/06/2019
MODERATE
Yes i
Moderate
Not published

GHSA-57cf-349j-352g: Out-of-bounds Read in npmconf. Affects npmconf versions < 2.1.3. Fixed in 2.1.3. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The npmconf package is a configuration manager for the npm package manager. It is used to store and retrieve configuration settings for npm. The package is deprecated and should not be used anymore. It is vulnerable to an out-of-bounds read issue in versions prior to 2.1.3 when a typed number is passed as input on Node.js 4.x.

Vulnerability Detail

The vulnerability in npmconf arises from the allocation and writing of uninitialized memory contents when a typed number is provided as input. This can lead to out-of-bounds read access, potentially resulting in information disclosure or a crash. The issue affects versions of npmconf before 2.1.3 on Node.js 4.x.

How To Fix

Latest published version: 2.1.3 as of 23 Oct 2026

npm install npmconf@2.1.3

The newest release already contains this fix.

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

Conclusion

The npmconf package has a vulnerability that allows for out-of-bounds read access. It is recommended to update to the latest version and consider alternative configuration storage mechanisms. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for npmconf →

Share this vulnerability

FAQ

npmconf is a configuration manager for the npm package manager. It is used to store and retrieve configuration settings for npm.

The vulnerability can lead to out-of-bounds read access, potentially resulting in information disclosure or a crash.

Versions of npmconf before 2.1.3 are affected.

To fix the vulnerability, update to version 2.1.3 or later of npmconf. Consider switching to another configuration storage mechanism as well.

No specific workaround is mentioned for this vulnerability.

How To Fix

Latest published version: 2.1.3 as of 23 Oct 2026

npm install npmconf@2.1.3

The newest release already contains this fix.

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