VDB
Sign up
MEDIUM5.3

GHSA-4hpf-3wq7-5rpr

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

Quick fix

GHSA-4hpf-3wq7-5rpr — is-my-json-valid: upgrade to the fixed version with the command below.

npm install is-my-json-valid@2.17.2

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/is-my-json-valid
Introduced in: 2.0.0Fixed in: 2.17.2
Fixnpm install is-my-json-valid@2.17.2
npm/is-my-json-valid
Introduced in: 0Fixed in: 1.4.1
Fixnpm install is-my-json-valid@1.4.1

References