Live threats

All CVEs / Is-my-json-valid Project

CVE-2018-1107Is-my-json-valid Project Is-my-json-valid

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
1.2%
probability of exploitation in 30 days · percentile 68
Auth required
No
Published
Mar 30, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Is-my-json-valid.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm is-my-json-valid ≥ 2.0.0 < 2.17.2 2.17.2 npm install is-my-json-valid@2.17.2
npm is-my-json-valid < 1.4.1 1.4.1 npm install is-my-json-valid@1.4.1

Per OSV / GitHub Advisories (GHSA-4hpf-3wq7-5rpr). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
is-my-json-valid_projectis-my-json-valid< 1.4.1
is-my-json-valid_projectis-my-json-valid≥ 2.0.0 < 2.17.2

Official sources

References

Links published by the sources. Open them with care.