# Keywords to Links Converter <= 2.2.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Link Slug

- **ID:** WPSEC-2026-3181
- **Plugin:** Keywords to Links Converter (`links-auto-replacer`), https://wordpress.org/plugins/links-auto-replacer/
- **Affected versions:** from 2.0.0 before 2.2.5
- **Fixed in:** 2.2.5 (Update to 2.2.5 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/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-16)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/links-auto-replacer
- **Fix released:** 2026-11-15
- **Published:** 2026-11-16
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3181/

## Description

The Keywords to Links Converter plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the short link slug of an auto link in all versions up to, and including, 2.2.4. This is due to insufficient output escaping: the stored slug is printed inside a single-quoted JavaScript string on the link edit screen. This makes it possible for authenticated attackers with Contributor-level access and above, who can create links, to inject arbitrary web scripts that run whenever an administrator opens the link for editing.

## References

- https://wpsec.com/vuln/WPSEC-2026-3181/
- https://plugins.svn.wordpress.org/links-auto-replacer/tags/2.2.5/
- https://wordpress.org/plugins/links-auto-replacer/

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

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.
