GHSA-9r3m-mhfm-39cm: Bigint money Incorrect Calculation Vulnerability

LOW
CWE-682
Published
Advisory Summary

GHSA-9r3m-mhfm-39cm is a LOW incorrect calculation vulnerability (CWE-682: Incorrect Calculation) affecting Bigint money libraries in the npm ecosystem. The issue involves incorrect calculation in bigint-money. Remediation is available by upgrading affected packages to version 0.6.2.

GHSA-9r3m-mhfm-39cm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9r3m-mhfm-39cm
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-682: Incorrect Calculation
Affected Product Bigint money
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-9r3m-mhfm-39cm

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

bigint-money fixed: 0.6.2
npm install bigint-money@0.6.2
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 bigint-money

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-9r3m-mhfm-39cm, inspect your project dependencies using npm:

npm ls bigint-money

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

Note: The npm ls bigint-money 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-682: Incorrect Calculation, where the product performs a calculation that generates incorrect or unintended results that are later used in security-critical decisions or resource management. In Bigint money, 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

Versions of `bigint-money` prior to 0.6.2 are vulnerable to an Incorrect Calculation. The package incorrectly rounded certain numbers, which could have drastic consequences due to its usage in financial systems. ## Recommendation Upgrade to version 0.6.2 or later.

GHSA-9r3m-mhfm-39cm Affected Bigint money Versions

1 component(s)
Fixed Versions:
0.6.2
Product / Package Ecosystem Affected Versions Fixed Version
bigint-money
npm
< 0.6.2
0.6.2

References

Frequently Asked Questions

What is GHSA-9r3m-mhfm-39cm?
GHSA-9r3m-mhfm-39cm is a security vulnerability in Bigint money involving Incorrect Calculation in bigint-money under CWE-682: Incorrect Calculation.
Which Bigint money versions are affected?
Affected versions include releases prior to 0.6.2 across affected packages: bigint-money.
What version fixes GHSA-9r3m-mhfm-39cm?
Upgrading to 0.6.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is bigint-money affected?
Yes, bigint-money is affected in releases prior to 0.6.2. Upgrade your dependency to 0.6.2 or later.
What CWE is associated with GHSA-9r3m-mhfm-39cm?
GHSA-9r3m-mhfm-39cm is classified under CWE-682: Incorrect Calculation (The product performs a calculation that generates incorrect or unintended results that are later used in security-critical decisions or resource management.).
How can I check npm dependencies for GHSA-9r3m-mhfm-39cm?
Run the dependency tree command: 'npm ls bigint-money'. 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-9r3m-mhfm-39cm",
  "modified" : "2020-08-31T18:42:08Z",
  "published" : "2020-09-11T21:10:29Z",
  "aliases" : [ ],
  "summary" : "Incorrect Calculation in bigint-money",
  "details" : "Versions of `bigint-money` prior to 0.6.2 are vulnerable to an Incorrect Calculation. The package incorrectly rounded certain numbers, which could have drastic consequences due to its usage in financial systems.\n\n\n## Recommendation\n\nUpgrade to version 0.6.2 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bigint-money"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/962"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-682" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:42:08Z",
    "nvd_published_at" : null
  }
}