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

- **ID:** WPSEC-2026-3180
- **Plugin:** Keywords to Links Converter (`links-auto-replacer`), https://wordpress.org/plugins/links-auto-replacer/
- **Affected versions:** all versions 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-3180/

## Description

The Keywords to Links Converter plugin for WordPress is vulnerable to Stored Cross-Site Scripting via post content in all versions up to, and including, 2.2.4 due to the keyword linking routine decoding HTML entities in the processed content with htmlspecialchars_decode() before output. Escaped text such as '&lt;script&gt;', which WordPress allows in posts, is turned back into live HTML when a configured keyword appears in the post. This makes it possible for authenticated attackers with Contributor-level access and above to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-3180/
- 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-3180/

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.
