Regular Expression Denial of Service

Module: is-my-json-valid

Published: January 18th, 2016

Reported by: Adam Baldwin



Vulnerable: <=2.12.3
Patched: >=2.12.4


It is possible to block the event loop when specially crafted user input is allowed into a validator using the utc-millisec format.

"The Regular expression Denial of Service (ReDoS) is a Denial of Service attack, that exploits the fact that most Regular Expression implementations may reach extreme situations that cause them to work very slowly (exponentially related to input size). An attacker can then cause a program using a Regular Expression to enter these extreme situations and then hang for a very long time." [1]


Upgrade to version 2.12.4 or greater.


Sign up FREE for
nsp Continuous Security

Free for open source and the first private repo,
then just $1/mo per private repo