Vulnerabilities in pkg:npm/bigint-money
PACKAGEGHSA-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.
pkg:npm/bigint-money
Vulnerability advisories affecting package pkg:npm/bigint-money. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9r3m-mhfm-39cm | - | LOW | Incorrect Calculation in bigint-money |
GHSA-9r3m-mhfm-39cm at a Glance
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.
npm install bigint-money@0.6.2
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
GHSA-9r3m-mhfm-39cm Affected Bigint money Versions
1 component(s)| 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?
Which Bigint money versions are affected?
What version fixes GHSA-9r3m-mhfm-39cm?
Is bigint-money affected?
What CWE is associated with GHSA-9r3m-mhfm-39cm?
How can I check npm dependencies for GHSA-9r3m-mhfm-39cm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}