Vulnerabilities in pkg:npm/is-my-json-valid
PACKAGECVE-2016-2537 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) 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.12.4.
pkg:npm/is-my-json-valid
Vulnerability advisories affecting package pkg:npm/is-my-json-valid. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-f522-ffg8-j8r6 | CVE-2016-2537 | HIGH | Regular Expression Denial of Service in is-my-json-valid |
| GHSA-4hpf-3wq7-5rpr | CVE-2018-1107 | MODERATE | Regular expression deinal of service (ReDoS) in is-my-json-valid |
| GHSA-4x7c-cx64-49w8 | - | LOW | Regular Expression Denial of Service in is-my-json-valid |
| GHSA-ccq6-3qx5-vmqx | - | MODERATE | Moderate severity vulnerability that affects is-my-json-valid |
CVE-2016-2537 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2016-2537
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.12.4
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 CVE-2016-2537, 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.12.4), 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 CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. 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
CVE-2016-2537 Affected Is my json valid Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
is-my-json-valid
|
npm |
< 2.12.4
|
2.12.4
|
References
Frequently Asked Questions
What is CVE-2016-2537?
Which Is my json valid versions are affected?
What version fixes CVE-2016-2537?
Is is-my-json-valid affected?
What is the CVSS score of CVE-2016-2537?
What CWE is associated with CVE-2016-2537?
How can I check npm dependencies for CVE-2016-2537?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f522-ffg8-j8r6",
"modified" : "2025-10-17T17:50:27Z",
"published" : "2017-10-24T18:33:35Z",
"aliases" : [ "CVE-2016-2537" ],
"summary" : "Regular Expression Denial of Service in is-my-json-valid",
"details" : "Version of `is-my-json-valid` before 2.12.4 are vulnerable to regular expression denial of service (ReDoS) via the email validation function.\n\n\n## Recommendation\n\nUpdate to version 2.12.4 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "is-my-json-valid"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.12.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-2537"
}, {
"type" : "WEB",
"url" : "https://github.com/github/advisory-database/pull/4850"
}, {
"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"
}, {
"type" : "WEB",
"url" : "https://github.com/mafintosh/is-my-json-valid/commit/eca4beb21e61877d76fdf6bea771f72f39544d9b"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/317548"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-f522-ffg8-j8r6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mafintosh/is-my-json-valid"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/572"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/76"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:33:36Z",
"nvd_published_at" : "2016-02-23T05:59:01Z"
}
}