# Link Library <= 7.10.7 - Unauthenticated Stored Cross-Site Scripting via Link Name, Description and Target

- **ID:** WPSEC-2026-4154
- **Plugin:** Link Library (`link-library`), https://wordpress.org/plugins/link-library/
- **Affected versions:** from 7.10.3 before 7.10.8
- **Fixed in:** 7.10.8 (Update to 7.10.8 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/link-library
- **Fix released:** 2026-11-27
- **Published:** 2026-11-28
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4154/

## Description

The Link Library plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the link name, link description and link target values shown in the title and target attributes of links rendered by the link library shortcode and block. The issue affects versions 7.10.3 up to, and including, 7.10.7. The cause is insufficient output escaping: the complete ' title="..."' and ' target="..."' fragments were passed through esc_html(), which encodes the surrounding quotes and leaves the attribute value unquoted, so a value containing spaces can add new attributes such as event handlers. This makes it possible for unauthenticated attackers using the front-end link submission form (link name and description), and for authenticated attackers with contributor-level access and above who create links in the dashboard (name, description and target), to inject arbitrary web scripts. The scripts run when a user views a page that displays the link, once the link is published or the library is configured to show pending or draft links.

## References

- https://wpsec.com/vuln/WPSEC-2026-4154/
- https://plugins.svn.wordpress.org/link-library/tags/7.10.8/
- https://wordpress.org/plugins/link-library/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4154/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
