AploSec / Disclosures / CVE-2026-144581
validator.js 13.15.22 through 13.15.35 isURL Protocols Allowlist Bypass via javascript: URL
CVE-2026-144581 · published 2026-12-04
In plain words: this type of bug lets someone run scripts in another person's browser (cross-site scripting, XSS). No fixed release is listed yet.
Summary
CVE-2026-144581 affects validator.js (npm) >= 13.15.22, <= 13.15.35: isURL Protocols Allowlist Bypass via javascript: URL (CWE-79). No fixed release is listed. CVSS 4.0 base score 2.3 (Low), assigned by VulnCheck. Published 2026-12-04 by VulnCheck. Credit: Zachariah Mithani (AploSec).
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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
No fixed release is listed in the advisory. Check the references for upstream status.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/validator-js-13.15.22-through-13.15.35-isurl-protocols-allowlist-bypass-via-javascript-url
- Vulnerable codehttps://github.com/validatorjs/validator.js/blob/13.15.35/src/lib/isURL.js#L150-L170
- Vulnerable codehttps://github.com/validatorjs/validator.js/blob/13.15.35/src/lib/isURL.js#L230-L258
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-144581
- Severity
- Low 2.3CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- validator.js
- Ecosystem
- npm
- Affected
- >= 13.15.22, <= 13.15.35
- Fixed
- None
- Weakness
- CWE-79
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder