Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › Vulnerabilities › validatorjs

Medium 5.3 2 CVEs Analysis

validator.js isURL() flaws allow host check bypass and javascript: URL misparsing

Two NVD records published on 2026-12-04 describe flaws in the isURL() function of validator.js. The more serious, CVE-2026-144582 (MEDIUM, CVSS 5.3), can let crafted URLs slip past host allowlists and blocklists, while CVE-2026-144581 (LOW, CVSS 2.3) can let a javascript: link be read as a host and port pair.

What to look into

  • 2 vulnerabilities in validatorjs validator.js: 1 medium, 1 low (CVSS up to 5.3).
  • None of them is known to be exploited yet.
  • Start with CVE-2026-144582 (5.3 medium): validator.js through 13.15.35 contains a host validation bypass vulnerability in isURL() that allows attackers to evade hostwhitelist and hostblacklist checks by inserting a backslash before an '@' i… An attacker without an account can exploit this over the network if a user views or visits something.
  • 2 of 2 can be attacked over the network without logging in.
  • Kinds of flaws: URL Redirection to Untrusted Site ('Open Redirect'); Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
JavaScriptVulnerabilitiesWeb

Key points

  • Both flaws are in isURL() in validator.js and involve how URLs are parsed.
  • CVE-2026-144582 (MEDIUM, CVSS 5.3) can bypass host allowlists and blocklists, enabling open redirects and outbound fetch bypasses.
  • CVE-2026-144581 (LOW, CVSS 2.3) can let javascript: links pass as host and port pairs, with XSS possible when requiretld is false.
  • The records name no fixed version, workaround, or known exploitation.

Both records concern isURL(), the validator.js function that checks whether a string is a well-formed URL. Both are parsing mismatches: the library reads a URL one way, and the result differs from how other parsers read the same string.

CVE-2026-144582 (MEDIUM, CVSS 5.3)

According to the record, validator.js through 13.15.35 can be fooled by a backslash placed before an '@' in the authority section of a URL. isURL() then reads an allowed host, while WHATWG-conformant parsers resolve the same string to a host the attacker chose. The record names open redirects and bypasses of outbound fetch allowlists as the resulting risks. Applications that rely on the hostwhitelist or hostblacklist options are the ones the record describes as exposed.

CVE-2026-144581 (LOW, CVSS 2.3)

This record covers versions 13.15.22 through 13.15.35. It says isURL() can misparse javascript: URLs as a host and port pair, which skips the cleanUpProtocol() check. The example given is a link such as javascript:1/ followed by script. The record says this can cause cross-site scripting when a victim clicks the rendered href, in applications that use requiretld: false. The low score is the rating the record gives; the sources do not describe active exploitation of either issue.

Gaps in the records

Neither record names a fixed release, a workaround, or detection guidance. The affected version ranges also differ: the first runs through 13.15.35 with no start version given, and the second starts at 13.15.22.

What to do

  1. Identify applications that call validator.js isURL() with hostwhitelist or hostblacklist options, since CVE-2026-144582 targets these checks.
  2. Identify applications that call isURL() with requiretld set to false, since CVE-2026-144581 applies to that setting.
  3. Check the validator.js project or your vendor for a release that fixes these issues; the records do not name one.

Our article about all 2 vulnerabilities, written with AI assistance from the official records listed below. Each CVE's page has its details.

The 2 vulnerabilities

  • CVE-2026-144582 5.3 validator.js through 13.15.35 contains a host validation bypass vulnerability in isURL() that allows attackers to evade hostwhitelist and hostblacklist checks by inserting a backslash before an '@' in the authority. Attackers can supply UR…
  • CVE-2026-144581 2.3 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…

Frequently asked questions

How many validatorjs validator.js vulnerabilities were published on December 4, 2026?

2 vulnerabilities: 1 medium, 1 low, with CVSS scores up to 5.3.

Are any of them being exploited?

None of them is in CISA's Known Exploited Vulnerabilities catalog yet.

Which one should be fixed first?

CVE-2026-144582 (CVSS 5.3): validator.js through 13.15.35 contains a host validation bypass vulnerability in isURL() that allows attackers to evade hostwhitelist and hostblacklist checks by inserting a backslash before an '@' i…

Original records