Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
MEDIUM severity

CVE-2018-1107 — is-my-json-valid

MEDIUMFix: mafintosh/is-my-json-valid#159

CVE-2018-1107 is a medium-severity (CVSS 5.3) Uncontrolled Resource Consumption vulnerability in is-my-json-valid. 1 public exploit reference exists, so weaponization risk is real. A fix is available for is-my-json-valid — see the affected versions and patch details below.

Regular expression deinal of service (ReDoS) in is-my-json-valid

Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
1 known
Exploitation data as of Oct 8, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
1.2%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs67th percentile — riskier than 67% of all scored CVEsHighest risk
0.00%0.57%1.14%1.70%0.3%1.2%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2018-1107 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,987 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

2 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

342other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
is-my-json-validnpm
1.3Mdownloads / week

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

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
📦npmis-my-json-valid≥ 2.0.0&&< 2.17.22.17.2npm install is-my-json-valid@2.17.2
📦npmis-my-json-validall versions1.4.1npm install is-my-json-valid@1.4.1

Affected Products

1 product · 2 configurations
Application
is-my-json-validis-my-json-valid_project
≥ 2.0.0 && < 2.17.2
range
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for is-my-json-valid, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update is-my-json-valid to 2.17.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-1107 is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

In Red Hat Quay the is-my-json-valid library is included as a build time dependency of protractor. It's only used at build time, not at runtime reducing the impact to low.

ProductFixed inAdvisory
Red Hat Quay 3quay/quay-rhel8:v3.6.0-62RHSA-2021:3917

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2018-1107 in your dependencies?

Find it across npm, including transitive dependencies.

CVE-2018-1107: is-my-json-valid — Fixed in 2.17.2