@vuelidate/validators@2.0.0-alpha.5 vulnerabilities

Validators for Vuelidate

  • latest version

    2.0.4

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @vuelidate/validators package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable 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