Vulnerabilities in pkg:npm/node-weakauras-parser

PACKAGE
Advisory Summary

GHSA-86mr-6m89-vgj3 is a MODERATE buffer overflow vulnerability (CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')) affecting Node weakauras parser libraries in the npm ecosystem. The issue involves buffer overflow in node-weakauras-parser. Remediation is available by upgrading affected packages to version 1.0.5, 2.0.2, 3.0.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/node-weakauras-parser

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/node-weakauras-parser. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-86mr-6m89-vgj3 - MODERATE Buffer Overflow in node-weakauras-parser

GHSA-86mr-6m89-vgj3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-86mr-6m89-vgj3
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Affected Product Node weakauras parser
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-86mr-6m89-vgj3

To remediate this vulnerability, upgrade all affected Node weakauras parser dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

node-weakauras-parser fixed: 1.0.5
npm install node-weakauras-parser@1.0.5
node-weakauras-parser fixed: 2.0.2
npm install node-weakauras-parser@2.0.2
node-weakauras-parser fixed: 3.0.1
npm install node-weakauras-parser@3.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls node-weakauras-parser

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-86mr-6m89-vgj3, inspect your project dependencies using npm:

npm ls node-weakauras-parser

Analyze the terminal output to locate any version of Node weakauras parser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.5), your application is affected.

Note: The npm ls node-weakauras-parser 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-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), where the product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer. In Node weakauras parser, 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

Affected versions of `node-weakauras-parser` are vulnerable to a Buffer Overflow. The `encode_weakaura` function fails to properly validate the input size. A buffer of 13835058055282163711 bytes causes an overflow on 64-bit systems. ## Recommendation Upgrade to versions 1.0.5, 2.0.2, 3.0.1 or later.

GHSA-86mr-6m89-vgj3 Affected Node weakauras parser Versions

3 component(s)
Fixed Versions:
1.0.52.0.23.0.1
Product / Package Ecosystem Affected Versions Fixed Version
node-weakauras-parser
npm
≥ 1.0.4
< 1.0.5
1.0.5
node-weakauras-parser
npm
≥ 2.0.0
< 2.0.2
2.0.2
node-weakauras-parser
npm
≥ 3.0.0
< 3.0.1
3.0.1

References

Frequently Asked Questions

What is GHSA-86mr-6m89-vgj3?
GHSA-86mr-6m89-vgj3 is a security vulnerability in Node weakauras parser involving Buffer Overflow in node-weakauras-parser under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow').
Which Node weakauras parser versions are affected?
Affected versions include releases prior to 1.0.5, 2.0.2, 3.0.1 across affected packages: node-weakauras-parser.
What version fixes GHSA-86mr-6m89-vgj3?
Upgrading to 1.0.5, 2.0.2, 3.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is node-weakauras-parser affected?
Yes, node-weakauras-parser is affected in releases prior to 1.0.5, 2.0.2, 3.0.1. Upgrade your dependency to 1.0.5, 2.0.2, 3.0.1 or later.
What CWE is associated with GHSA-86mr-6m89-vgj3?
GHSA-86mr-6m89-vgj3 is classified under CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') (The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.).
How can I check npm dependencies for GHSA-86mr-6m89-vgj3?
Run the dependency tree command: 'npm ls node-weakauras-parser'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-86mr-6m89-vgj3",
  "modified" : "2021-10-04T21:10:07Z",
  "published" : "2020-09-03T15:51:38Z",
  "aliases" : [ ],
  "summary" : "Buffer Overflow in node-weakauras-parser",
  "details" : "Affected versions of `node-weakauras-parser` are vulnerable to a Buffer Overflow. The `encode_weakaura` function fails to properly validate the input size. A buffer of 13835058055282163711 bytes causes an overflow on 64-bit systems.\n\n\n## Recommendation\n\nUpgrade to versions 1.0.5, 2.0.2, 3.0.1 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "node-weakauras-parser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.4"
      }, {
        "fixed" : "1.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "node-weakauras-parser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "node-weakauras-parser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Zireael-N/node-weakauras-parser/commit/bc146da09db689e554d28e948f1cf1c138f09f69#diff-023afe6291ac9ada88788108cb3367b3R38-R43"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Zireael-N/node-weakauras-parser"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1504"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-120" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T19:01:42Z",
    "nvd_published_at" : null
  }
}