async-validator@2.0.1 vulnerabilities

validate form asynchronous

Direct Vulnerabilities

Known vulnerabilities in the async-validator package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Regular Expression Denial of Service (ReDoS)

async-validator is a validator form asynchronous

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to the type() function in the rule.ts and index.js files, which uses an unsafe regular expression to validate user-supplied URLs. A remote attacker can exploit this vulnerability by supplying a URL that leverages a large number of characters.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade async-validator to version 4.0.4 or higher.

<4.0.4