CVE-2018-1107
MEDIUM5.3EPSS 0.26%Regular expression deinal of service (ReDoS) in is-my-json-valid
Published: 1/6/2022Modified: 11/8/2023
Description
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.
Affected packages (1)
- npm/is-my-json-valid>= 2.0.0, < 2.17.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2018-1107
- WEBhttps://bugzilla.redhat.com/show_bug.cgi?id=1546357
- WEBhttps://github.com/mafintosh/is-my-json-valid/commit/b3051b277f7caa08cd2edc6f74f50aeda65d2976
- WEBhttps://github.com/mafintosh/is-my-json-valid/pull/159
- WEBhttps://snyk.io/vuln/npm:is-my-json-valid:20180214