GHSA-jh64-vcm7-ghm4LowCVSS 4.7
validator.js 13.15.22 through 13.15.35 contains a protocols allowlist bypass in isURL() that...
🔗 CVE IDs covered (1)
📋 Description
validator.js 13.15.22 through 13.15.35 contains a protocols allowlist bypass in isURL() that misparses javascript: URLs as host and port pairs, skipping the cleanUpProtocol() check. Attackers can submit links like javascript:1/ followed by script to applications using require_tld: false, causing cross-site scripting when victims click the rendered href.
🔗 References (5)
- https://nvd.nist.gov/vuln/detail/CVE-2026-144581
- https://github.com/validatorjs/validator.js/blob/13.15.35/src/lib/isURL.js#L150-L170
- https://github.com/validatorjs/validator.js/blob/13.15.35/src/lib/isURL.js#L230-L258
- https://www.vulncheck.com/advisories/validator-js-13.15.22-through-13.15.35-isurl-protocols-allowlist-bypass-via-javascript-url
- https://github.com/advisories/GHSA-jh64-vcm7-ghm4