# Latest Post Shortcode <= 14.3.0 - Unauthenticated Reflected Cross-Site Scripting via Pagination AJAX Action

- **ID:** WPSEC-2026-4622
- **Plugin:** Latest Post Shortcode (`latest-post-shortcode`), https://wordpress.org/plugins/latest-post-shortcode/
- **Affected versions:** from 12.0.0 before 14.3.1
- **Fixed in:** 14.3.1 (Update to 14.3.1 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-04)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/latest-post-shortcode
- **Fix released:** 2026-12-03
- **Published:** 2026-12-04
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4622/

## Description

The Latest Post Shortcode plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'titletag' argument of the lps_navigate_to_page AJAX action in all versions up to, and including, 14.3.0. The cause is that arbitrary shortcode arguments are accepted in the request, and the slider output prints the title tag in the tag-name position with only esc_attr() and no validation. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute if they can trick a user into performing an action such as submitting a crafted form request.

## References

- https://wpsec.com/vuln/WPSEC-2026-4622/
- https://plugins.svn.wordpress.org/latest-post-shortcode/tags/14.3.1/
- https://wordpress.org/plugins/latest-post-shortcode/

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

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.
