What’s Vulnerable › Vulnerabilities
CVE-2018-1107
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-03-30 · updated 2026-06-17
- Weakness: CWE-400
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 products
- nodejs-is-my-json-valid: before 1.4.1; from 2.0.0 before 2.17.2 — fixed in 1.4.1, 2.17.2
How to fix
Upgrade to a fixed version: nodejs-is-my-json-valid 1.4.1, 2.17.2. Check the vendor advisory for mitigations.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1546357
- https://snyk.io/vuln/npm:is-my-json-valid:20180214
- https://bugzilla.redhat.com/show_bug.cgi?id=1546357
- https://snyk.io/vuln/npm:is-my-json-valid:20180214
Get alerted when CVE-2018-1107 or the next vulnerability affects your stack