# Latest Post Shortcode <= 14.3.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Generator Modal

- **ID:** WPSEC-2026-4624
- **Plugin:** Latest Post Shortcode (`latest-post-shortcode`), https://wordpress.org/plugins/latest-post-shortcode/
- **Affected versions:** from 14.3.0 before 14.3.1
- **Fixed in:** 14.3.1 (Update to 14.3.1 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (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-4624/

## Description

The Latest Post Shortcode plugin for WordPress is vulnerable to DOM-based Stored Cross-Site Scripting via the shortcode generator modal in all versions up to, and including, 14.3.0. The cause is that the block's shortcode attribute is written into the page with jQuery's .html(). That attribute can be read as decoded text from block markup saved in the pre-13.0.0 format, so it bypasses the attribute sanitization. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts that execute when a higher-privileged user opens the shortcode generator modal for the affected block.

## References

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

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.
