Vulnerabilities / Latest Posts / WPSEC-2026-3843

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

Medium 4.0 CWE-79Fixed in 1.5.0
ID
WPSEC-2026-3843
Plugin
Latest Posts (latest-posts)
Affected
from 1.3 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:R/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 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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0