Advisory

GHSA-4hpf-3wq7-5rpr

Also known as: CVE-2018-1107

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-01-06 20:44 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

is-my-json-valid

npm · All systems

Affected

  • introduced 2.0.0, fixed 2.17.2 (semver)

Fixed versions

2.17.2

Fix

is-my-json-valid

npm · All systems

Affected

  • introduced 0, fixed 1.4.1 (semver)

Fixed versions

1.4.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences