5.3med
CVE-2018-1107
Regular expression deinal of service (ReDoS) in is-my-json-valid
Also known as GHSA-4hpf-3wq7-5rpr
Published 5 y ago · modified 4 mo ago · JSON
CVSS
5.3
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
1.2%
percentile 68%
Public exploits
0
none known
Summary
It was discovered that the is-my-json-valid JavaScript library used an inefficient regular expression to validate JSON fields defined to have email format. A specially crafted JSON file could cause it to consume an excessive amount of CPU time when validated.
Exploit prediction (EPSS)
1.20% probability of exploitation in the next 30 days, higher than 68% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | is-my-json-valid | >=2.0.0, <2.17.2 <1.4.1 | 2.17.2 1.4.1 |
Affected products
- n/a nodejs-is-my-json-valid
Classification
- Weakness
- CWE-400 Uncontrolled Resource Consumption
References
- bugzilla.redhat.com /show_bug.cgi?id=1546357 · x_refsource_MISC, x_transferred
- snyk.io /vuln/npm:is-my-json-valid:20180214 · x_refsource_MISC, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2018-1107 · advisory
- github.com /mafintosh/is-my-json-valid/pull/159 · web
- github.com /mafintosh/is-my-json-valid/commit/b3051b277f7caa08cd2edc6f74f50aeda65d2976 · web
Sources
- CVE List: CVE-2018-1107
- GitHub Advisory: GHSA-4hpf-3wq7-5rpr
- NVD: CVE-2018-1107
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.