CVE-2026-144581: validator.js 13.15.22 through 13.15.35 isURL Protocols Allowlist Bypass via javascript: URL
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 requiretld: false, causing cross-site scripting when victims click the rendered href.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Applications using validator.js versions 13.15.22 through 13.15.35 are exposed when they call isURL() with require_tld set to false and render accepted attacker-controlled URLs into href attributes.
What does an attacker need to exploit it?
The attacker needs to submit a crafted javascript: URL, such as one beginning with javascript:1/ followed by script. Exploitation requires a victim to click the rendered link; no attacker privileges are required.
How can I determine whether my application is affected?
Check whether your installed validator.js version falls between 13.15.22 and 13.15.35 and whether any isURL() validation uses require_tld: false. Prioritize paths where accepted user-supplied URLs are rendered as clickable href values.