{"id":"CVE-2018-1107","aliases":["GHSA-4hpf-3wq7-5rpr"],"kind":"cve","tier":"cold","status":"published","title":"Regular expression deinal of service (ReDoS) in is-my-json-valid","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.","ai_summary":null,"severity":"medium","cvss":{"score":5.3,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"NVD"},"scores":[{"score":5.3,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"nvd"},{"score":5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","source":"nvd"}],"cwe":["CWE-400"],"remote":true,"remote_unauth":true,"epss":{"score":0.01204,"percentile":0.69152,"date":"2026-12-02"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":true,"exploitdb_ids":[]},"affected":[{"ecosystem":"npm","name":"is-my-json-valid","affected":">= 2.0.0, < 2.17.2","fixed":["2.17.2","1.4.1"],"source":"osv"}],"affected_products":[{"vendor":"n/a","product":"nodejs-is-my-json-valid","versions":"is-myjson-valid 2.17.2, is-myjson-valid 1.4.1","source":"cvelist"}],"ai_versions":null,"mitigation":"Upgrade is-my-json-valid to one of 2.17.2, 1.4.1 (or later in the same release line).","technologies":[],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1107","kind":"vendor"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1546357","kind":"patch"},{"url":"https://github.com/mafintosh/is-my-json-valid/pull/159","kind":"patch"},{"url":"https://github.com/mafintosh/is-my-json-valid/commit/b3051b277f7caa08cd2edc6f74f50aeda65d2976","kind":"patch"},{"url":"https://snyk.io/vuln/npm:is-my-json-valid:20180214","kind":"exploit"}],"workarounds":null,"vendors":["is-my-json-valid_project"],"products":["is-my-json-valid","nodejs-is-my-json-valid"],"cpes":["cpe:2.3:a:is-my-json-valid_project:is-my-json-valid:*:*:*:*:*:node.js:*:*"],"published_at":"2021-03-30T01:48:27.000Z","modified_at":"2026-06-17T01:50:29.610Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1107"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-4hpf-3wq7-5rpr","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2018-1107","markdown":"https://flawdb.com/CVE-2018-1107.md","json":"https://flawdb.com/api/v1/entries/CVE-2018-1107"}}