GHSA-9965-vmph-33xx

Suggest an improvement
Source
https://github.com/advisories/GHSA-9965-vmph-33xx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-9965-vmph-33xx/GHSA-9965-vmph-33xx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9965-vmph-33xx
Aliases
Published
2025-09-30T18:30:25Z
Modified
2025-10-27T12:53:01Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2025-09-30T18:15:50Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-10-13T20:08:58Z",
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

npm / validator

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
13.15.20