CVE-2026-140027: WC <= 4.18.1 - Authenticated (Subscriber+) Stored Cross-Site Scripting via 'billing_nif' Classic-Checkout Field
The WC – APG NIF/CIF/NIE Field plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'billingnif (classic checkout) → persisted as user meta billingnif/shippingnif' parameter in all versions up to, and including, 4.18.1 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. Successful exploitation requires the store to use the classic [woocommercecheckout] shortcode and the attacker to place two orders: a classic-checkout order to lodge the crafted payload in user meta, followed by a Store API checkout (POST /wp-json/wc/store/v1/checkout) that omits the apg/nif field, causing WooCommerce to seed it from the unescaped default-value filter and persist it as order meta.
Affected Software
Event History
Frequently Asked Questions
Which sites are exposed to this issue?
Sites using the WC – APG NIF/CIF/NIE Field plugin through version 4.18.1 are exposed only if their store uses the classic [woocommerce_checkout] shortcode. The exploit chain also requires a Store API checkout endpoint.
What access and actions does an attacker need?
An attacker needs an authenticated WordPress account with at least subscriber-level access. They must place two orders: one through classic checkout to store a crafted value in user meta, then one through POST /wp-json/wc/store/v1/checkout without the apg/nif field to persist the value as order meta.
What is the impact of successful exploitation?
The attacker can store arbitrary web script that executes when a user visits a page containing the injected content. The reported impact includes low confidentiality and integrity impact, with no availability impact.