# Latest Posts <= 1.4.5 - Authenticated (Administrator+) Stored Cross-Site Scripting via Widget Title and Count Settings

- **ID:** WPSEC-2026-3844
- **Plugin:** Latest Posts (`latest-posts`), https://wordpress.org/plugins/latest-posts/
- **Affected versions:** all versions before 1.5.0
- **Fixed in:** 1.5.0 (Update to 1.5.0 or later.)
- **Severity:** Medium 4.4 (CVSS:3.1/AV:N/AC:H/PR:H/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-25)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/latest-posts
- **Fix released:** 2026-11-24
- **Published:** 2026-11-25
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3844/

## Description

The Latest Posts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the widget's 'title' and 'count' settings in all versions up to, and including, 1.4.5, due to insufficient output escaping. The values are only passed through strip_tags() when saved and are printed unescaped into input value attributes in the widget settings form, so quote characters can break out of the attribute. This makes it possible for authenticated attackers with administrator-level access and above to inject arbitrary web scripts that run when another user opens the widget settings form. This only matters on multisite installations or where unfiltered_html has been disabled.

## References

- https://wpsec.com/vuln/WPSEC-2026-3844/
- https://plugins.svn.wordpress.org/latest-posts/tags/1.5.0/
- https://wordpress.org/plugins/latest-posts/

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

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.
