GitHub Advisoryadvisory · npm

GHSA-5m5x-9j46-h678 Element Plus Link component (el-link) implements insufficient input validation for the href attribute

MEDIUM Published 2025-09-09 Modified 2025-09-12 Official page ↗
Aliases
CVE-2025-57665
Ecosystem
npm
Packages
element-plus
Severity
Moderate
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U
Weaknesses
CWE-116, CWE-20
Reviewed
2025-09-10

Affected packages

• npm element-plus: <= 2.11.0 (no fix yet)

Description

Element Plus Link component (el-link) prior to 2.11.0 implements insufficient input validation for the href attribute, creating a security abstraction gap that obscures URL-based attack vectors. The component passes user-controlled href values directly to underlying anchor elements without protocol validation, URL sanitization, or security headers. This allows attackers to inject malicious URLs using dangerous protocols (javascript:, data:, file:) or redirect users to external malicious sites. While native HTML anchor elements present similar risks, UI component libraries bear additional responsibility for implementing security safeguards and providing clear risk documentation. The vulnerability enables XSS attacks, phishing campaigns, and open redirect exploits affecting applications that use Element Plus Link components with user-controlled or untrusted URL inputs. As of version 2.11.0, Element Plus have clearly documented the risks inherent with the component.

Related

Alias · CVE (1)

  • CVE-2025-57665 Element Plus Link component (el-link) through 2.10.6 implements insufficient input validation for the href attribute, creating a security… vulnerability

Weakness · CWE (2)

  • CWE-116 Improper Encoding or Escaping of Output weakness
  • CWE-20 Improper Input Validation weakness

References