InPost for WooCommerce <= 2.0.1 - Unauthenticated HTML Injection via Parcel Locker ID

Medium 5.3 CWE-80Fixed in 2.0.2
ID
WPSEC-2026-4598
Plugin
InPost PL (inpost-for-woocommerce)
Affected
all versions before 2.0.2
Remediation
Update to 2.0.2 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-80
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-04
Attack surface
InPost for WooCommerce on WPSec AttackSurface
Fix released
Published

Description

The InPost PL plugin for WordPress is vulnerable to HTML Injection via the parcel locker ID (the 'parcel_machine_id' checkout field, the Store API 'inpost-parcel-locker-id' extension value, and the session value saved through the 'inpost_save_to_wc_session' AJAX action) in all versions up to, and including, 2.0.1. This is due to insufficient input validation: the value was only passed through sanitize_text_field(), which keeps text such as '< div ...>', and it was then output through wp_kses_post() in the order email and in order notes, which turns it back into markup. This makes it possible for unauthenticated attackers who can place an order to inject arbitrary HTML allowed by wp_kses_post(), such as links and images, into order emails and the order notes a shop administrator views. Script execution is not possible because wp_kses_post() removes event handlers and script tags.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0