CVE-2025-57665
Element-plus vulnerability
Element Plus Link component (el-link) through 2.10.6 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.
Affected products
Element-plus. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Element-plus runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/element-plus/element-plus/pull/21711 · Exploit
- element-plus.org/en-US/component/link.html
- github.com/element-plus/element-plus
- github.com/element-plus/element-plus/blob/dev/packages/components/link/src/link.vue
- www.npmjs.com/package/element-plus
- nvd.nist.gov/vuln/detail/CVE-2025-57665
- github.com/element-plus/element-plus/commit/110d4e1d7e150ccb829771c7319d31ce777d102f
- github.com/advisories/GHSA-5m5x-9j46-h678
- nvd.nist.gov/vuln/detail/CVE-2025-57665
- cve.org/CVERecord?id=CVE-2025-57665
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.