ghsa-9965-vmph-33xx
Vulnerability from github
Published
2025-09-30 18:30
Modified
2025-10-27 12:53
Summary
validator.js has a URL validation bypass vulnerability in its isURL function
Details

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.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "validator"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "13.15.20"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2025-56200"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-79"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2025-10-13T20:08:58Z",
    "nvd_published_at": "2025-09-30T18:15:50Z",
    "severity": "MODERATE"
  },
  "details": "A URL validation bypass vulnerability exists in validator.js prior to version 13.15.20. The isURL() function uses \u0027://\u0027 as a delimiter to parse protocols, while browsers use \u0027:\u0027 as the delimiter. This parsing difference allows attackers to bypass protocol and domain validation by crafting URLs leading to XSS and Open Redirect attacks.",
  "id": "GHSA-9965-vmph-33xx",
  "modified": "2025-10-27T12:53:01Z",
  "published": "2025-09-30T18:30:25Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-56200"
    },
    {
      "type": "WEB",
      "url": "https://github.com/validatorjs/validator.js/issues/2600"
    },
    {
      "type": "WEB",
      "url": "https://github.com/validatorjs/validator.js/pull/2608"
    },
    {
      "type": "WEB",
      "url": "https://github.com/validatorjs/validator.js/commit/cbef5088f02d36caf978f378bb845fe49bdc0809"
    },
    {
      "type": "WEB",
      "url": "https://gist.github.com/junan-98/27ae092aa40e2a057d41a0f95148f666"
    },
    {
      "type": "WEB",
      "url": "https://gist.github.com/junan-98/a93130505b258b9e4ec9f393e7533596"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/validatorjs/validator.js"
    },
    {
      "type": "WEB",
      "url": "https://github.com/validatorjs/validator.js/releases/tag/13.15.20"
    },
    {
      "type": "WEB",
      "url": "http://validatorjs.com"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "validator.js has a URL validation bypass vulnerability in its isURL function"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…