W4 Post List <= 3.1.0 - Authenticated (Custom+) Stored Cross-Site Scripting via 'post_meta' Template Tag
- State
- Published
- Severity
- 6.4 Medium
- Published
- Nov 26, 2026
- Updated
- Nov 26, 2026
- Reserved
- Nov 16, 2026
Description
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 [post_meta 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.
| Product | Versions |
|---|---|
| W4 Post List sajib1223 | 3.1.0 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 6.4 Medium | Wordfence |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/f9205951-5e0b-4f91-8822-cf8cabd552e2?source=cve
- https://plugins.trac.wordpress.org/browser/w4-post-list/tags/3.1.0/includes/template-tags/class-post-template-tags.php#L813
- https://plugins.trac.wordpress.org/browser/w4-post-list/tags/3.1.0/includes/template-tags/class-post-template-tags.php#L825
- https://plugins.trac.wordpress.org/browser/w4-post-list/tags/3.1.0/includes/template-tags/class-post-template-tags.php#L836
- https://plugins.trac.wordpress.org/browser/w4-post-list/tags/3.1.0/includes/template-tags/class-post-template-tags.php#L809
- https://plugins.trac.wordpress.org/browser/w4-post-list/tags/3.1.0/includes/abstracts/class-list.php#L504
- https://github.com/w4devInc/w4-post-list/compare/3.1.0...3.1.1
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.