{
 "id": "WPSEC-2026-4598",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4598/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4598/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4598/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4598.json",
 "title": "InPost for WooCommerce <= 2.0.1 - Unauthenticated HTML Injection via Parcel Locker ID",
 "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.",
 "plugin": {
  "slug": "inpost-for-woocommerce",
  "name": "InPost for WooCommerce",
  "full_name": "InPost PL",
  "wordpress_org": "https://wordpress.org/plugins/inpost-for-woocommerce/",
  "advisories_url": "https://wpsec.com/vuln/plugin/inpost-for-woocommerce/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/inpost-for-woocommerce"
 },
 "type": "CONTENT INJECTION",
 "cwe": [
  "CWE-80"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 5.3,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "2.0.2",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 2.0.2"
  ]
 },
 "introduced_in": null,
 "fixed_in": "2.0.2",
 "remediation": "Update to 2.0.2 or later.",
 "fix_released": "2026-12-03T11:02:06+00:00",
 "published": "2026-12-04T11:44:55+00:00",
 "updated": "2026-12-04T09:15:32.270758+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4598/",
  "https://plugins.svn.wordpress.org/inpost-for-woocommerce/tags/2.0.2/",
  "https://wordpress.org/plugins/inpost-for-woocommerce/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/inpost-for-woocommerce",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-12-04"
 }
}