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)
- Affected
- all versions before 1.5.0
- Remediation
- Update to 1.5.0 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-25
- Attack surface
- Latest Posts on WPSec AttackSurface
- Fix released
- Published
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/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS