Skip to content

← Public intelligence

npm package

validator

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

10 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.7npmAmendedPublished

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

    CVE-2025-12758 · GHSA-vghf-hv5q-vc2g

    Affected
    • npm validator < 13.15.22
    Fixed in
    13.15.22· Vendor fix available
    Issue
    Versions of the package validator before 13.15.22 are vulnerable to Incomplete Filtering of One or More Instances of Special Elements in the isLength() function that does not take into account Unicode variation selectors (\uFE0F, \uFE0E) appearing in a sequence which lead to improper string length calculation. This can lead to an application using isLength for input validation accepting strings significantly longer than intended, resulting in issues like data truncation in databases, buffer overflows in other system components, or denial-of-service.

    Recommended action: Upgrade to 13.15.22 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. Medium, CVSS 6.1npmAmendedPublished

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

    CVE-2025-56200 · GHSA-9965-vmph-33xx

    Affected
    • npm validator < 13.15.20
    Fixed in
    13.15.20· Vendor fix available
    Issue
    A URL validation bypass vulnerability exists in validator.js prior to version 13.15.20. The isURL() function uses '://' as a delimiter to parse protocols, while browsers use ':' as the delimiter. This parsing difference allows attackers to bypass protocol and domain validation by crafting URLs leading to XSS and Open Redirect attacks.

    Recommended action: Upgrade to 13.15.20 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. Medium, CVSS 5.3npmAmendedPublished

    Inefficient Regular Expression Complexity in Validator.js

    GHSA-xx4c-jj58-r7x6

    Affected
    • npm validator >= 11.1.0, < 13.7.0
    Fixed in
    13.7.0· Vendor fix available
    Issue
    Impact Versions of validator prior to 13.7.0 are affected by an inefficient Regular Expression complexity when using the rtrim and trim sanitizers. Patches The problem has been patched in validator 13.7.0

    Recommended action: Upgrade to 13.7.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. Medium, CVSS 5.3npmAmendedPublished

    Inefficient Regular Expression Complexity in validator.js

    CVE-2021-3765 · GHSA-qgmg-gppg-76g5

    Affected
    • npm validator < 13.7.0
    Fixed in
    13.7.0· Vendor fix available
    Issue
    validator.js prior to 13.7.0 is vulnerable to Inefficient Regular Expression Complexity

    Recommended action: Upgrade to 13.7.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. High, CVSS 7.5npmAmendedPublished

    Regular Expression Denial of Service in validator

    CVE-2014-8882 · GHSA-f5w6-r7rg-mcgq

    Affected
    • npm validator < 3.22.1
    Fixed in
    3.22.1· Vendor fix available
    Issue
    Versions of validator prior to 3.22.1 are affected by a regular expression denial of service vulnerability in the isURL method. Recommendation Update to version 3.22.1 or later.

    Recommended action: Upgrade to 3.22.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  6. Medium, CVSS 6.1npmAmendedPublished

    XSS Filter Bypass via Encoded URL in validator

    CVE-2014-9772 · GHSA-79mx-88w7-8f7q

    Affected
    • npm validator < 2.0.0
    Fixed in
    2.0.0· Vendor fix available
    Issue
    Versions of validator prior to 2.0.0 contained an xss filter method that is affected by several filter bypasses. This may result in a cross-site scripting vulnerability. Proof of Concept The xss() function removes the word "javascript" when contained inside an attribute. However, it does not properly handle cases where characters have been hex-encoded. As a result, it is possible to build an input that bypasses the filter but which the browser will accept as valid JavaScript. For example: will render as: Recommendation The package author has decided to remove the xss filter functionality in the latest version of this module. If this feature is not currently being used, you are not affected by the vulnerability. If it is being used, updating to the latest version of the module will break your application. In order for affected users to mitigate this vulnerability, it is necessary to use an alternative package that provides similar functionality.

    Recommended action: Upgrade to 2.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  7. Medium, CVSS 6.1npmAmendedPublished

    Moderate severity vulnerability that affects validator

    CVE-2013-7452 · GHSA-rh6c-q938-3r9q

    Affected
    • npm validator < 1.1.0
    Fixed in
    1.1.0· Vendor fix available
    Issue
    The validator module before 1.1.0 for Node.js allows remote attackers to bypass the cross-site scripting (XSS) filter via a crafted javascript URI.

    Recommended action: Upgrade to 1.1.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  8. Medium, CVSS 6.1npmAmendedPublished

    Multiple XSS Filter Bypasses in validator

    CVE-2013-7454 · GHSA-q4qq-fm7q-cwp5

    Affected
    • npm validator < 1.1.0
    Fixed in
    1.1.0· Vendor fix available
    Issue
    Versions of validator prior to 1.1.0 are affected by several cross-site scripting vulnerabilities due to bypasses discovered in the blacklist-based filter. Proof of Concept Various inputs that could bypass the filter were discovered: Improper parsing of nested tags: Incomplete filtering of javascript: URIs: UI Redressing: Bypass via Nested Forbidden Strings: Additional bypasses were discovered by Krzysztof Kotowicz in 2012 when auditing CodeIgniter's XSS filtering function, which this code was based off of. Recommendation If you are a developer currently using the xss filter function from the validator package, you should consider replacing it with the escape filter function from the same package. This function replaces all instances of angle brackets (<, ), ampersands, and quotation marks, so no HTML tags will be processed.

    Recommended action: Upgrade to 1.1.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  9. Medium, CVSS 6.1npmAmendedPublished

    Moderate severity vulnerability that affects validator

    CVE-2013-7453 · GHSA-552w-rqg8-gxxm

    Affected
    • npm validator < 1.1.0
    Fixed in
    1.1.0· Vendor fix available
    Issue
    The validator module before 1.1.0 for Node.js allows remote attackers to bypass the cross-site scripting (XSS) filter via vectors related to UI redressing.

    Recommended action: Upgrade to 1.1.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  10. Medium, CVSS 6.1npmAmendedPublished

    Moderate severity vulnerability that affects validator

    CVE-2013-7451 · GHSA-qpjp-7rp2-9c3f

    Affected
    • npm validator < 1.1.0
    Fixed in
    1.1.0· Vendor fix available
    Issue
    The validator module before 1.1.0 for Node.js allows remote attackers to bypass the XSS filter via a nested tag.

    Recommended action: Upgrade to 1.1.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →