CVE-2026-129052 in WPAdverts Plugin
Summary
by MITRE • 11/27/2026
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Greg Winiarski WPAdverts wpadverts allows Stored XSS.This issue affects WPAdverts: from n/a through 2.3.5.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/27/2026
The identified security flaw represents a classic instance of Improper Neutralization of Input During Web Page Generation, commonly known as Cross-Site Scripting or XSS. Specifically, this vulnerability manifests as a Stored XSS within the WPAdverts plugin for WordPress, developed by Greg Winiarski. Unlike reflected XSS attacks where malicious scripts are executed immediately through user interaction with a crafted link, stored vulnerabilities persist on the target server. In this context, an attacker can inject malicious JavaScript code into fields that are subsequently saved to the database and later rendered in web pages viewed by other users or administrators. This persistence mechanism significantly amplifies the severity of the issue because the payload does not require complex social engineering tricks involving direct links; it simply requires the victim to visit a page where the tainted data is displayed, such as an advertisement listing or user profile section within the application.
The technical root cause lies in the insufficient sanitization and output encoding mechanisms employed by WPAdverts versions from n/a through 2.3.5 when processing user-supplied input. When users submit forms to create or edit advertisements, the plugin fails to properly escape special characters that have semantic meaning in HTML and JavaScript contexts before storing them or rendering them back into the browser environment. This lack of rigorous validation allows attackers to inject script tags, event handlers, or other executable code fragments directly into the application's data store. Because WordPress themes often rely on dynamic content injection for displaying listings, any unsanitized input stored via WPAdverts becomes a vehicle for executing arbitrary client-side scripts in the context of the victim's browser session and the domain hosting the vulnerable website.
The operational impact of this vulnerability is substantial due to its potential for widespread compromise within an organization or community using the platform. Successful exploitation allows attackers to perform actions such as stealing administrative credentials via cookie theft, hijacking user sessions by sending them to malicious sites, defacing web pages with unauthorized content, or deploying keyloggers to capture sensitive information entered on the site. Furthermore, because stored XSS payloads are served from a trusted domain, they bypass many browser security features and Content Security Policy restrictions that might otherwise mitigate reflected attacks. This can lead to significant data breaches, loss of user trust, and potential compliance violations depending on the nature of the data handled by the website.
From an industry standards perspective, this vulnerability aligns with CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). The attack vector is typically classified under ATT&CK technique T1059.007: JavaScript, which falls within the Execution and Persistence tactics as it allows for code execution on client systems without requiring local installation or privilege escalation. To mitigate this risk, immediate action must be taken to update WPAdverts to a patched version that addresses these input validation flaws. Developers should implement strict output encoding using context-aware escaping functions provided by the WordPress framework, such as esc_html() or wp_kses_post(), whenever displaying user-generated content. Additionally, implementing Content Security Policy headers can provide an additional layer of defense by restricting the sources from which scripts are allowed to execute, thereby reducing the impact even if a vulnerability is present in older versions that cannot be immediately patched.