Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. is-my-json-valid
  4. ›
  5. CVE-2018-1107

CVE-2018-1107: Uncontrolled Resource Consumption

January 6, 2022

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.

References

  • bugzilla.redhat.com/show_bug.cgi?id=1546357
  • github.com/advisories/GHSA-4hpf-3wq7-5rpr
  • github.com/mafintosh/is-my-json-valid/commit/b3051b277f7caa08cd2edc6f74f50aeda65d2976
  • github.com/mafintosh/is-my-json-valid/pull/159
  • nvd.nist.gov/vuln/detail/CVE-2018-1107
  • snyk.io/vuln/npm:is-my-json-valid:20180214

Code Behaviors & Features

Detect and mitigate CVE-2018-1107 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.0.0 before 2.17.2, all versions before 1.4.1

Fixed versions

  • 1.4.1

Solution

Upgrade to version 1.4.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/is-my-json-valid/CVE-2018-1107.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:41 +0000.