CVE-2026-130056: W4 Post List <= 3.1.0 - Authenticated (Custom+) Stored Cross-Site Scripting via 'post_meta' Template Tag
The W4 Post List plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'metavalue (for metakeyinput=<attacker-chosen key>)' parameter in all versions up to, and including, 3.1.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with custom-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the attacker's post to be included in the W4 Post List query and the active list template to reference the attacker's chosen meta key via a [postmeta key="..."] tag; because WordPress core applies no kses filtering to custom field values on save, a raw XSS payload is preserved in the database unmodified and rendered verbatim on every page load.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs an authenticated WordPress account with custom-level access or higher. They must be able to create or modify a post and set a custom-field value using an attacker-chosen meta key.
What conditions are required for the injected script to execute?
The attacker’s post must be included in a W4 Post List query, and the active list template must contain a [post_meta key="..."] tag that references the chosen custom-field key. The payload executes whenever someone loads the page rendering that list entry.
Are custom-field payloads modified or removed by WordPress when saved?
No. WordPress core does not apply kses filtering to custom field values on save, so a raw script payload can remain stored in the database unchanged.
How can I determine whether a site is exposed to exploitation?
Review W4 Post List templates for [post_meta key="..."] tags, then identify whether untrusted users with custom-level or greater access can create posts included by the corresponding W4 Post List queries and set values for those meta keys.