CVE-2026-120081 in Duplicate Post Plugin
Summary
by MITRE • 11/26/2026
The Duplicate Post plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'data[custom][names][prefix]' parameter in all versions up to, and including, 1.5.7 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the site owner to have enabled both 'User Level Permissions' for the Subscriber role and the 'Show reference to original item?' option, and the targeted administrator must view the edit screen of the chained copy post in the classic editor.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/26/2026
The Duplicate Post plugin is a widely utilized WordPress extension that facilitates the creation of copies from existing posts or pages, streamlining content management workflows for site administrators and editors. However, versions up to 1.5.7 contain a critical security flaw classified as Stored Cross-Site Scripting (XSS). This vulnerability arises directly from insufficient input sanitization and output escaping mechanisms within the plugin's handling of specific configuration parameters. Specifically, the data[custom][names][prefix] parameter fails to properly validate or encode user-supplied data before it is stored in the database and subsequently rendered on the front end or administrative interface. As a result, malicious actors can inject arbitrary JavaScript code into the system, which persists until manually removed by an administrator.
The operational impact of this vulnerability is significant because it allows for persistent attacks against users who interact with compromised content. Unlike reflected XSS, where payload execution depends on immediate user interaction with a crafted link, stored XSS embeds the malicious script within the site's data structure. When any authorized user views or edits the affected post using the classic editor in WordPress, the injected scripts execute automatically in their browser context. This can lead to session hijacking, credential theft via keyloggers, defacement of the website interface, or further propagation of malware if combined with other vulnerabilities. The severity is compounded by the fact that exploitation does not require high-level privileges for initial injection; only subscriber-level access and above are necessary to trigger the vulnerability under specific conditions.
Exploitation of this flaw requires a precise set of environmental configurations on the target WordPress site, which limits its widespread applicability but increases the risk for sites with such settings enabled. The attacker must first have at least Subscriber role permissions, allowing them to create or modify posts. Additionally, the site administrator must have explicitly enabled User Level Permissions for the Subscriber role and activated the Show reference to original item option within the Duplicate Post plugin settings. These configurations are often used in collaborative environments where multiple users contribute content with varying levels of authority. Once these conditions are met, an attacker can craft a post containing malicious JavaScript payloads embedded in the custom name prefix field. When an administrator later views or edits this duplicated post using the classic editor, the browser interprets and executes the script as part of the page's legitimate codebase.
From a classification perspective, this vulnerability aligns with CWE-79, which describes Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. The attack vector is categorized under ATT&CK technique T1059, specifically Command and Scripting Interpretation via JavaScript, leveraging the browser's native execution capabilities to perform unauthorized actions on behalf of the victim user. This classification highlights the importance of treating all user input as untrusted until it has been rigorously validated against a whitelist of acceptable characters or properly encoded for safe rendering in HTML contexts.
Mitigation strategies should focus primarily on immediate patching and configuration hardening. Site administrators running versions 1.5.7 or earlier must upgrade to the latest stable release of the Duplicate Post plugin, where developers have implemented robust input sanitization using WordPress functions such as wp_kses_post or esc_html to ensure that special characters are neutralized before storage and display. In cases where immediate patching is not feasible due to compatibility concerns with other plugins, administrators should consider disabling User Level Permissions for Subscriber roles if they do not strictly require them. Furthermore, enabling the Show reference to original item option can be disabled temporarily to break the exploitation chain until a permanent fix is applied. Implementing a Web Application Firewall (WAF) may also provide an additional layer of defense by detecting and blocking common XSS payload patterns before they reach the application logic. Regular security audits and code reviews focusing on input validation practices are essential for preventing similar vulnerabilities in custom or third-party WordPress extensions.