validator vulnerabilities

String validation and sanitization

Registry
npm
Latest
13.15.35
License
MIT

10 known advisories

The latest version, 13.15.35, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install validator@13.15.35

Security advisories for validator

  • HighGHSA-vghf-hv5q-vc2g27 Nov 2025

    Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements

    Affected
    <13.15.22
    Fixed in
    13.15.22
  • MediumGHSA-9965-vmph-33xx30 Sept 2025

    validator.js has a URL validation bypass vulnerability in its isURL function

    Affected
    <13.15.20
    Fixed in
    13.15.20
  • MediumGHSA-xx4c-jj58-r7x619 Nov 2021

    Inefficient Regular Expression Complexity in Validator.js

    Affected
    >=11.1.0 <13.7.0
    Fixed in
    13.7.0
  • MediumGHSA-qgmg-gppg-76g53 Nov 2021

    Inefficient Regular Expression Complexity in validator.js

    Affected
    <13.7.0
    Fixed in
    13.7.0
  • HighGHSA-f5w6-r7rg-mcgq31 Aug 2020

    Regular Expression Denial of Service in validator

    Affected
    <3.22.1
    Fixed in
    3.22.1
  • MediumGHSA-79mx-88w7-8f7q6 Nov 2018

    XSS Filter Bypass via Encoded URL in validator

    Affected
    <2.0.0
    Fixed in
    2.0.0
  • MediumGHSA-552w-rqg8-gxxm24 Oct 2017

    Moderate severity vulnerability that affects validator

    Affected
    <1.1.0
    Fixed in
    1.1.0
  • MediumGHSA-q4qq-fm7q-cwp524 Oct 2017

    Multiple XSS Filter Bypasses in validator

    Affected
    <1.1.0
    Fixed in
    1.1.0
  • MediumGHSA-qpjp-7rp2-9c3f24 Oct 2017

    Moderate severity vulnerability that affects validator

    Affected
    <1.1.0
    Fixed in
    1.1.0
  • MediumGHSA-rh6c-q938-3r9q24 Oct 2017

    Moderate severity vulnerability that affects validator

    Affected
    <1.1.0
    Fixed in
    1.1.0

Which of your client projects still run an old validator?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.