Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. element-plus
  4. ›
  5. CVE-2025-57665

CVE-2025-57665: Element Plus Link component (el-link) implements insufficient input validation for the href attribute

September 9, 2025 (updated September 12, 2025)

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.

References

  • element-plus.org/en-US/component/link.html
  • github.com/advisories/GHSA-5m5x-9j46-h678
  • github.com/element-plus/element-plus
  • github.com/element-plus/element-plus/blob/dev/packages/components/link/src/link.vue
  • github.com/element-plus/element-plus/commit/110d4e1d7e150ccb829771c7319d31ce777d102f
  • github.com/element-plus/element-plus/pull/21711
  • nvd.nist.gov/vuln/detail/CVE-2025-57665
  • www.npmjs.com/package/element-plus

Code Behaviors & Features

Detect and mitigate CVE-2025-57665 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.11.0

Solution

Unfortunately, there is no solution available yet.

Weakness

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

Source file

npm/element-plus/CVE-2025-57665.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 29 Sep 2025 00:20:11 +0000.