CVE-2025-57665: Element plus Element Plus Link Component (el-link) Vulnerability

MODERATE
Advisory Identifier: GHSA-5m5x-9j46-h678
CWE-116 CWE-20
Published
Advisory Summary

CVE-2025-57665 is a MODERATE element plus link component (el-link) vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Element plus libraries in the npm ecosystem. The issue involves element plus link component (el-link) implements insufficient input validation for the href attribute. Remediation is available in the latest vendor maintenance releases.

CVE-2025-57665 at a Glance

CVE Identifier CVE-2025-57665
GHSA Identifier GHSA-5m5x-9j46-h678
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product Element plus
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-57665

To remediate this vulnerability, upgrade all affected Element plus dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

element-plus fixed: Latest secure release
npm install element-plus@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls element-plus

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-57665, inspect your project dependencies using npm:

npm ls element-plus

Analyze the terminal output to locate any version of Element plus in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls element-plus command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Element plus, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-57665 Affected Element plus Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
element-plus
npm
≤ 2.11.0

References

Frequently Asked Questions

What is CVE-2025-57665?
CVE-2025-57665 is a security vulnerability in Element plus involving Element Plus Link component (el-link) implements insufficient input validation for the href attribute under CWE-116: Improper Encoding or Escaping of Output.
Which Element plus versions are affected?
Affected versions include releases prior to current release patches across affected packages: element-plus.
What version fixes CVE-2025-57665?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is element-plus affected?
Yes, element-plus is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-57665?
CVE-2025-57665 is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check npm dependencies for CVE-2025-57665?
Run the dependency tree command: 'npm ls element-plus'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5m5x-9j46-h678",
  "modified" : "2025-09-12T19:05:43Z",
  "published" : "2025-09-09T18:31:25Z",
  "aliases" : [ "CVE-2025-57665" ],
  "summary" : "Element Plus Link component (el-link) implements insufficient input validation for the href attribute",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "element-plus"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "2.11.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57665"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/element-plus/element-plus/pull/21711"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/element-plus/element-plus/commit/110d4e1d7e150ccb829771c7319d31ce777d102f"
  }, {
    "type" : "WEB",
    "url" : "https://element-plus.org/en-US/component/link.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/element-plus/element-plus"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/element-plus/element-plus/blob/dev/packages/components/link/src/link.vue"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/element-plus"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116", "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-10T20:41:39Z",
    "nvd_published_at" : "2025-09-09T18:15:36Z"
  }
}