CVE-2025-57665 Element Plus Link component (el-link) implements insufficient input validation for the href attribute
Attackers can inject malicious URLs into Element Plus Link components, enabling XSS and phishing attacks against applications using untrusted inputs.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-57665?
CVE-2025-57665 is a medium-severity cross-site scripting vulnerability in n/a, published on 9 Sep 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2025-57665?
2 open source packages ship an affected version, including element-plus. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
element-plus npm | All versions to 2.11.0 | None |
element-plus npm | All versions to 2.11.0 | None |
Products include Element-Plus Element-Plus.
How do I fix CVE-2025-57665?
No fix has been published for CVE-2025-57665 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-57665 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57665 exists.
Other vulnerabilities in n/a
Sources
Also known as GHSA-5m5x-9j46-h678.