# Latest Posts <= 1.4.5 - Authenticated (Editor+) Stored Cross-Site Scripting via Category Names

- **ID:** WPSEC-2026-3843
- **Plugin:** Latest Posts (`latest-posts`), https://wordpress.org/plugins/latest-posts/
- **Affected versions:** from 1.3 before 1.5.0
- **Fixed in:** 1.5.0 (Update to 1.5.0 or later.)
- **Severity:** Medium 4.0 (CVSS:3.1/AV:N/AC:H/PR:H/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-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-3843/

## Description

The Latest Posts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via category names in all versions up to, and including, 1.4.5, due to insufficient output escaping in the widget settings form. Category names are printed unescaped into the value attribute of the category select options. WordPress encodes angle brackets in term names but not double quotes, so a quote in a category name can close the attribute and add event handler attributes. This makes it possible for authenticated attackers with editor-level access and above, who can manage categories, to inject arbitrary web scripts that run when an administrator interacts with the category selector of a Latest Posts widget. This only matters on multisite installations or where unfiltered_html has been disabled.

## References

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

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.
