CVE-2024-29123 Overview
CVE-2024-29123 is a reflected cross-site scripting (XSS) vulnerability in the Yannick Lefebvre Link Library plugin for WordPress. The issue affects all versions from unspecified initial releases through version 7.6. The flaw stems from improper neutralization of user-supplied input during web page generation, tracked under [CWE-79].
Attackers can craft malicious URLs that, when clicked by an authenticated user, execute arbitrary JavaScript in the victim's browser session. The vulnerability requires user interaction and can lead to session hijacking, credential theft, or unauthorized actions performed on behalf of the victim within the WordPress site.
Critical Impact
Successful exploitation enables attackers to execute arbitrary JavaScript in the context of a victim's browser, potentially compromising WordPress administrator sessions and site integrity.
Affected Products
- Yannick Lefebvre Link Library WordPress plugin versions up to and including 7.6
- WordPress sites running the vulnerable link-library plugin
- Any WordPress deployment where administrators or authenticated users interact with attacker-supplied links
Discovery Timeline
- 2024-03-19 - CVE-2024-29123 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-29123
Vulnerability Analysis
The Link Library plugin fails to properly sanitize or encode user-controlled input before reflecting it back in HTTP responses. When the plugin processes request parameters, malicious payloads containing HTML or JavaScript are rendered directly into the resulting web page. This allows attackers to inject client-side scripts that execute within the trusted origin of the WordPress site.
Because the exploit requires the victim to click a crafted link, the attack pattern typically involves phishing, social engineering, or embedding malicious URLs on attacker-controlled pages. The scope-changed impact means injected scripts can affect resources beyond the vulnerable component, including the broader WordPress administrative context.
Root Cause
The root cause is missing or insufficient output encoding on request parameters processed by the Link Library plugin. Input values are echoed into HTML responses without contextual escaping using WordPress functions such as esc_html(), esc_attr(), or wp_kses(). This design flaw maps to [CWE-79], Improper Neutralization of Input During Web Page Generation.
Attack Vector
The attack is network-based and requires no privileges, but does require user interaction. An attacker constructs a URL pointing to the vulnerable Link Library endpoint with a malicious payload in a reflected parameter. When a logged-in WordPress user visits the URL, the injected script executes with the user's privileges, enabling actions such as reading session cookies, submitting forms, or issuing authenticated requests.
Refer to the Patchstack Vulnerability Advisory for additional technical context on the affected parameters and payload structure.
Detection Methods for CVE-2024-29123
Indicators of Compromise
- HTTP requests to Link Library plugin endpoints containing URL-encoded <script> tags, javascript: URIs, or event handler attributes such as onerror= and onload=
- Web server access logs showing unusually long query strings targeting link-library shortcodes or admin pages
- Referrer headers originating from untrusted external domains that redirect users to plugin endpoints
Detection Strategies
- Deploy web application firewall (WAF) rules that inspect query parameters for HTML tags and JavaScript syntax targeting the link-library plugin path
- Monitor WordPress access logs for repeated requests to plugin endpoints with encoded angle brackets, quotes, or common XSS payload signatures
- Correlate browser-side content security policy (CSP) violations with server-side request logs to identify reflected injection attempts
Monitoring Recommendations
- Enable verbose logging on WordPress reverse proxies and inspect for XSS payload patterns targeting plugin parameters
- Track administrator session anomalies, including unexpected password resets, plugin installations, or user role changes
- Set alerts for outbound requests from browser sessions to unknown domains that may indicate exfiltrated cookies or tokens
How to Mitigate CVE-2024-29123
Immediate Actions Required
- Identify all WordPress installations running the Link Library plugin and inventory the installed version
- Update the Link Library plugin to a version later than 7.6 once the vendor publishes a fixed release
- Force session invalidation and password resets for administrator accounts that may have interacted with suspicious links
Patch Information
At the time of publication, the advisory documents the flaw as affecting Link Library through version 7.6. Administrators should consult the Patchstack Vulnerability Advisory and the plugin's WordPress repository page for the latest fixed version. Apply the vendor patch as soon as it becomes available.
Workarounds
- Deactivate the Link Library plugin until a patched version is installed if the plugin is not business-critical
- Deploy a WAF rule that blocks requests to link-library endpoints containing <, >, or javascript: in query parameters
- Enforce a strict Content Security Policy (CSP) that disallows inline scripts and restricts script sources to trusted origins
# Example WAF rule pattern to block reflected XSS attempts against the plugin
# ModSecurity-style rule
SecRule REQUEST_URI "@contains link-library" \
"chain,phase:2,deny,status:403,id:1029123,msg:'Blocked potential XSS on Link Library plugin'"
SecRule ARGS "@rx (?i)(<script|javascript:|onerror=|onload=)" "t:urlDecodeUni,t:htmlEntityDecode"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

