CVE-2025-31879

Barcode Generator for WooCommerce <= 2.0.4 - Missing Authorization to Authenticated (Subscriber+) Settings Update

2025-04-01 00:00
Kévin Mosbahi (Mika)

Strategic Overview

At a glance

CVE-2025-31879 is a medium-severity Missing Authorization vulnerability in the Barcode Generator for WooCommerce WordPress plugin, affecting versions <= 2.0.4. It carries a CVSS score of 4.3 (reachable over the network; low attack complexity). Exploitation requires an authenticated account at Subscriber level or above. The issue is fixed in version 2.0.5; sites on affected versions should update now. Disclosed April 2025, reported by Kévin Mosbahi (Mika).

Vulnerability Overview

The Barcode Generator for WooCommerce – Show barcodes on products, orders, invoices and other pages plugin for WordPress is vulnerable to unauthorized access due to a missing capability check on a function in all versions up to, and including, 2.0.4. This makes it possible for authenticated attackers, with Subscriber-level access and above, to update plugin settings.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user.

CWE-862: Missing Authorization

Reaching this weakness in Barcode Generator for WooCommerce <= 2.0.4 takes an account at Subscriber level or above. A missing authorization check means a function is reachable by anyone who can reach the endpoint, because the code never asks whether the caller is allowed to perform the action.

Any user who can reach the endpoint gets to run an action reserved for higher-privileged roles, from reading protected data to changing settings or content. For Barcode Generator for WooCommerce the fix is 2.0.5: builds <= 2.0.4 are affected, anything from 2.0.5 onward is not.

Remediation

Update to version 2.0.5, or a newer patched version

How does WordSec protect against this?

Because it turns on account access, WordSec's login security is the relevant layer: role-based two-factor, captcha and brute-force limits raise the cost of getting the account this needs. None of that substitutes for the fix: Barcode Generator for WooCommerce 2.0.5 closes this, and updating the plugin is the step that ends it.

  • Login Security
  • Alerts

External References

Related records

Other vulnerabilities in Barcode Generator for WooCommerce – Show barcodes on products, orders, invoices and other pages

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C