Element Plus Link component (el-link) implements insufficient input validation for the href attribute
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | element-plus | <= 2.11.0 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-57665
- https://github.com/element-plus/element-plus/pull/21711
- https://github.com/element-plus/element-plus/commit/110d4e1d7e150ccb829771c7319d31ce777d102f
- https://element-plus.org/en-US/component/link.html
- https://github.com/element-plus/element-plus
- https://github.com/element-plus/element-plus/blob/dev/packages/components/link/src/link.vue
- https://www.npmjs.com/package/element-plus
- 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- Weakness (CWE)
CWE-116, CWE-20- Platform
- npm
- Package
element-plus- Disclosed
- 09.09.2025
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-5m5x-9j46-h678 - CC BY 4.0
Vulnerability history: element-plus
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 04.2022 09.2025
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- Medium 2
Disclosures per year
- 2022: 1
- 2023: 0
- 2024: 0
- 2025: 1
- 2026: 0
-
Element Plus Link component (el-link) implements insufficient input validation for the href attribute this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.