GHSA-4x7c-cx64-49w8: Is my json valid Denial of Service Vulnerability
LOWGHSA-4x7c-cx64-49w8 is a LOW denial of service vulnerability (General Security Weakness) affecting Is my json valid libraries in the npm ecosystem. The issue involves regular expression denial of service in is-my-json-valid. Remediation is available by upgrading affected packages to version 2.17.2, 1.4.1.
GHSA-4x7c-cx64-49w8 at a Glance
How to Fix GHSA-4x7c-cx64-49w8
To remediate this vulnerability, upgrade all affected Is my json valid 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 is-my-json-valid@2.17.2
npm install is-my-json-valid@1.4.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls is-my-json-valid
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-4x7c-cx64-49w8, inspect your project dependencies using npm:
npm ls is-my-json-valid
Analyze the terminal output to locate any version of Is my json valid in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.17.2), your application is affected.
Note: The npm ls is-my-json-valid 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 General Security Weakness. In Is my json valid, 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-4x7c-cx64-49w8 Affected Is my json valid Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
is-my-json-valid
|
npm |
≥ 2.0.0
< 2.17.2
|
2.17.2
|
|
is-my-json-valid
|
npm |
< 1.4.1
|
1.4.1
|
References
Frequently Asked Questions
What is GHSA-4x7c-cx64-49w8?
Which Is my json valid versions are affected?
What version fixes GHSA-4x7c-cx64-49w8?
Is is-my-json-valid affected?
What CWE is associated with GHSA-4x7c-cx64-49w8?
How can I check npm dependencies for GHSA-4x7c-cx64-49w8?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4x7c-cx64-49w8",
"modified" : "2020-08-19T22:06:03Z",
"published" : "2020-08-19T22:06:03Z",
"withdrawn" : "2020-08-19T22:06:03Z",
"aliases" : [ ],
"summary" : "Regular Expression Denial of Service in is-my-json-valid",
"details" : "Withdrawn: Duplicate of GHSA-f522-ffg8-j8r6",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "is-my-json-valid"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.17.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "is-my-json-valid"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mafintosh/is-my-json-valid/pull/159"
}, {
"type" : "WEB",
"url" : "https://github.com/mafintosh/is-my-json-valid/commit/b3051b277f7caa08cd2edc6f74f50aeda65d2976"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-12T16:28:24Z",
"nvd_published_at" : null
}
}