CVE-2026-144581: validator.js 13.15.22 through 13.15.35 isURL Protocols Allowlist Bypass via javascript: URL

Published Dec 4, 2026
·
Updated

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

1 affected component
npm/validator>=13.15.22<=13.15.35

Event History

Dec 4, 2026
CVE Published
via MITRE·01:09 AM
Data Sourced
via MITRE·01:09 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203