CVE-2026-136519 in Advanced Product Fields for WooCommerce Plugininfo

Summary

by MITRE • 11/26/2026

The Advanced Product Fields (Product Addons) for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'wapf[field_<id>]' parameter in all versions up to, and including, 1.7.4 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The payload survives sanitization via a whitespace-prefixed tag gadget, is normalized into real HTML elements by wp_kses_post() and force_balance_tags() at render time, and is then executed by WordPress core's tags-box.js when it encounters the forged #tagsdiv-post_tag element on the order screen.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The Advanced Product Fields for WooCommerce plugin, also known as Product Addons, contains a critical security vulnerability affecting all versions up to 1.7.4. This flaw manifests as a Stored Cross-Site Scripting (XSS) issue within the wapf[field_<id>] parameter. The root cause lies in insufficient input sanitization and output escaping mechanisms during the handling of user-supplied data. Because this is a stored vulnerability, malicious scripts are persisted on the server side rather than being executed solely through immediate request manipulation. This persistence allows the attack to affect multiple users over time without requiring further interaction from the attacker after the initial injection.

The technical execution of this exploit relies on a sophisticated bypass technique involving whitespace-prefixed tag gadgets. When an unauthenticated attacker submits malicious input, it is designed to survive standard sanitization processes by leveraging specific formatting tricks. Specifically, the payload utilizes a prefix that allows it to evade immediate detection or removal filters. Upon rendering, WordPress core functions such as wp_kses_post() and force_balance_tags() process this data. These functions are intended to sanitize HTML but inadvertently normalize the malformed input into valid HTML elements due to the nature of the gadget used. This normalization step effectively transforms what was initially a bypassed string into executable script code within the DOM structure.

The final stage of exploitation occurs when WordPress core JavaScript, specifically tags-box.js, processes the rendered content on the order screen. The malicious payload creates a forged #tagsdiv-post_tag element that mimics legitimate tag input fields. When an administrator or authorized user accesses this page to view orders, the browser executes the embedded scripts as part of normal rendering operations. This results in arbitrary web script execution within the context of the victim's session. Since the attack vector targets order screens typically accessed by store administrators, the potential impact is severe, allowing attackers to hijack administrative sessions or perform actions on behalf of privileged users.

From a classification perspective, this vulnerability aligns with CWE-79, which covers Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. The specific technique of using stored payloads that persist in the database and execute upon retrieval is characteristic of persistent XSS attacks. In terms of the MITRE ATT&CK framework, this behavior maps to T1059.007 JavaScript execution within a browser environment and potentially T1189 Drive-by Compromise if used for further malware delivery. The lack of proper output escaping means that even trusted contexts are compromised because the application fails to distinguish between safe data and executable code during rendering.

The operational impact extends beyond simple script injection. Successful exploitation can lead to session hijacking, where attackers steal administrative cookies or tokens to gain full control over the WordPress installation. It also enables defacement of the site interface, phishing attacks against other users who view the compromised pages, and potential data exfiltration from sensitive order information stored in WooCommerce databases. The fact that unauthenticated actors can trigger this vulnerability significantly lowers the barrier for entry, allowing any internet user to prepare an attack without needing valid credentials initially.

Mitigation strategies must focus on both immediate remediation and long-term hardening. Users running versions of Advanced Product Fields up to 1.7.4 should upgrade immediately to a patched version where input sanitization is strictly enforced and output escaping is applied consistently across all rendering contexts. Developers implementing similar features in WordPress plugins must ensure that wp_kses_post() or equivalent functions are used not just for storage but critically during the final output phase, ensuring no unescaped data reaches the browser. Additionally, implementing Content Security Policy headers can help mitigate the impact of any remaining XSS vectors by restricting script execution sources. Regular security audits and code reviews focusing on input validation pipelines are essential to prevent similar bypass techniques involving whitespace or encoding tricks in future developments.

Responsible

Wordfence

Reservation

11/24/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00552

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!