Skip to content

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

Moderate severity GitHub Reviewed Published Jan 6, 2022 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

npm is-my-json-valid (npm)

Affected versions

>= 2.0.0, < 2.17.2
< 1.4.1

Patched versions

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

References

Published by the National Vulnerability Database Mar 30, 2021
Reviewed Mar 31, 2021
Published to the GitHub Advisory Database Jan 6, 2022
Last updated Feb 1, 2023

Severity

Moderate
5.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Weaknesses

CVE ID

CVE-2018-1107

GHSA ID

GHSA-4hpf-3wq7-5rpr

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.