GHSA-5m5x-9j46-h678

Suggest an improvement
Source
https://github.com/advisories/GHSA-5m5x-9j46-h678
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-5m5x-9j46-h678/GHSA-5m5x-9j46-h678.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5m5x-9j46-h678
Aliases
Published
2025-09-09T18:31:25Z
Modified
2025-09-12T19:05:43Z
Severity
  • 6.6 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-116",
        "CWE-20"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-09-10T20:41:39Z",
    "nvd_published_at":  "2025-09-09T18:15:36Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / element-plus

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
2.11.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-5m5x-9j46-h678/GHSA-5m5x-9j46-h678.json"