# Keywords to Links Converter <= 2.2.4 - Authenticated (Subscriber+) SQL Injection via 'post_ID' Parameter

- **ID:** WPSEC-2026-3179
- **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.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-89
- **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-3179/

## Description

The Keywords to Links Converter plugin for WordPress is vulnerable to SQL Injection via the 'post_ID' value of the 'my_pre_submit_validation' AJAX action in all versions up to, and including, 2.2.4. This is due to insufficient escaping of the user-supplied parameter, which is concatenated directly into an SQL query, and the lack of a capability check in the handler. The handler's nonce is printed on any admin page requested with a 'post_type=lar_link' parameter, including the profile page. This makes it possible for authenticated attackers with Subscriber-level access and above to append additional SQL queries to existing queries and extract sensitive information from the database.

## References

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

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.
