Skip to main content

validator.js CVE-2026-144581

| EUVDEUVD-2026-143866 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-12-04 VulnCheck GHSA-jh64-vcm7-ghm4
2.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted javascript: URL to app
  2. Exploit
    isURL() misparses host:port, skips cleanUpProtocol allowlist
  3. Execution
    Malicious href rendered in page
  4. Impact
    Victim clicks link, script executes in browser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the consuming application call validator.js isURL() with the non-default option require_tld: false, AND that the application subsequently render the user-supplied, validated value directly into a clickable href without additional protocol sanitization. The attack is further limited by required passive user interaction (UI:P): a victim must click the rendered javascript: link for the XSS to fire. Authentication: the CVSS vector contains PR:N, so link submission itself is unauthenticated. Applications that use default isURL() options (require_tld: true) or that do not reflect validated URLs into href attributes are not exploitable via this flaw.

Impact

All decision signals point to low real-world urgency. The input CVSS 4.0 base score is 2.3 (Low) with AV:N but AC:H, AT:P (a specific attack requirement) and UI:P (passive user interaction required), and impacts capped at Low across confidentiality and integrity (VC:L/VI:L/VA:N). The vuln.today Decision label is 'monitor', and there is no CISA KEV listing, no EPSS score provided, and no exploit/PoC reference in the input (references are only the vulnerable source lines on GitHub and the VulnCheck advisory). These signals are consistent rather than conflicting: a network-reachable XSS that nonetheless depends on a non-default configuration (require_tld: false) and on a victim clicking a rendered link. The one caveat is scope - this is an XSS that executes in the victim's browser, so the practical blast radius depends entirely on how the consuming application renders user-submitted links. This is a genuine but low-priority issue appropriate for routine patching and monitoring, not an emergency. Note: EPSS is not provided in the input, so exploitation-probability cannot be quantified here.

Exploit ScenarioDerived

An application uses validator.js isURL() with require_tld: false to validate user-submitted links, then renders accepted links as clickable href attributes. An attacker submits a value such as 'javascript:1/' followed by script, which isURL() misparses as a host/port pair and accepts because the cleanUpProtocol() allowlist check is skipped; when a victim later clicks the rendered link, the javascript: URL executes in their browser. No public exploit code is identified at time of analysis, and the high attack complexity plus required victim click (AC:H/AT:P/UI:P) make exploitation opportunistic rather than reliable.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 04, 2026

Cross-site scripting in validator.js 13.15.22 through 13.15.35 can occur when an application calls isURL() with the non-default require_tld: false option and renders the user-supplied value into a clickable href, because javascript: URLs are misparsed as host-and-port pairs and the cleanUpProtocol() allowlist check is skipped. The CVSS 4.0 score is 2.3 with high attack complexity and passive user interaction: the victim must click the rendered link, and the application must reflect the validated value without further protocol sanitization. Unauthenticated attackers can submit the crafted URL value, but no public exploit was identified at time of analysis, KEV status was not supplied, and the vuln.today decision label is monitor; all decision signals point to low real-world urgency.

RemediationAI

Patch status was not specified in the provided intelligence and no fixed version is listed; validator.js 13.15.35 is still within the affected range, so upgrade to the first release after 13.15.35 that the vendor identifies as fixed and track the VulnCheck advisory at https://www.vulncheck.com/advisories/validator-js-13.15.22-through-13.15.35-isurl-protocols-allowlist-bypass-via-javascript-url. Until a fixed release is confirmed, applications should avoid calling isURL() with require_tld: false for values that will be rendered as links, and applications that need that option should not place the returned value into an href without an independent protocol allowlist or output encoding. Those workarounds avoid the XSS sink but do not repair the protocol-allowlist bypass, and require_tld: true rejects hostnames without a TLD, which can break intranet, localhost, or single-label host use cases.

Affected VersionsENISA

validator.js 13.15.22 ≤13.15.35

Affected Packages

euvd validator_js no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

validator.js is a JavaScript string-validation library, and isURL() applies protocol and TLD checks before returning a boolean. The affected CPE is cpe:2.3:a:validatorjs:validator.js:*:*:*:*:*:*:*:*, with EUVD narrowing the affected range to 13.15.22 through 13.15.35. In these versions, a javascript: URL can be parsed as a host and port pair, bypassing the cleanUpProtocol() step that enforces the protocols allowlist; the referenced source lines in isURL.js at tag 13.15.35 document the parsing and cleanup paths. The root cause class is CWE-79: the validation bypass becomes cross-site scripting only when the consuming application uses require_tld: false and writes the returned value into an href without an independent scheme allowlist. Applications using the default require_tld: true or not reflecting validated URLs into link attributes are not exploitable via this flaw. The independent assessment rates this CVSS 3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N; the high complexity and user-interaction metrics reflect the specific application configuration and victim click required, not an attacker-controlled parsing race.

Know when Validator Js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 2.3 LOW
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 4.7 MEDIUM

AC:H reflects dependency on the non-default require_tld:false option; UI:R for the required victim click; PR:N as submission is unauthenticated; S:C and C:L/I:L for script execution in the victim's browser context.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
High
validator.js is a very widely used Node/JavaScript input-validation library
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Related Vulnerabilities in validator.js URL Validation Bypass Flaws

View all 2

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy