Vulnerabilities in pkg:npm/byte
PACKAGEGHSA-xm7f-x4wx-wmgv is a MODERATE out-of-bounds read vulnerability (CWE-125: Out-of-bounds Read) affecting Byte libraries in the npm ecosystem. The issue involves out-of-bounds read in byte. Remediation is available by upgrading affected packages to version 1.4.1.
pkg:npm/byte
Vulnerability advisories affecting package pkg:npm/byte. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xm7f-x4wx-wmgv | - | MODERATE | Out-of-bounds Read in byte |
GHSA-xm7f-x4wx-wmgv at a Glance
How to Fix GHSA-xm7f-x4wx-wmgv
To remediate this vulnerability, upgrade all affected Byte dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install byte@1.4.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls byte
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-xm7f-x4wx-wmgv, inspect your project dependencies using npm:
npm ls byte
Analyze the terminal output to locate any version of Byte in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.1), your application is affected.
Note: The npm ls byte command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Byte, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-xm7f-x4wx-wmgv Affected Byte Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
byte
|
npm |
< 1.4.1
|
1.4.1
|
References
Frequently Asked Questions
What is GHSA-xm7f-x4wx-wmgv?
Which Byte versions are affected?
What version fixes GHSA-xm7f-x4wx-wmgv?
Is byte affected?
What CWE is associated with GHSA-xm7f-x4wx-wmgv?
How can I check npm dependencies for GHSA-xm7f-x4wx-wmgv?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xm7f-x4wx-wmgv",
"modified" : "2020-08-31T18:31:36Z",
"published" : "2019-06-04T15:47:43Z",
"aliases" : [ ],
"summary" : "Out-of-bounds Read in byte",
"details" : "Versions of `byte` before 1.4.1 allocate uninitialized buffers and read data from them past the initialized length\n\n\n\n## Recommendation\n\nUpdate to version 1.4.1 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "byte"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/node-modules/byte/pull/3"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/330351"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/657"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-04T15:47:01Z",
"nvd_published_at" : null
}
}