# ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce <= 1.17.10 - Unauthenticated Stored Cross-Site Scripting via Inbound Email Body

- **ID:** WPSEC-2026-1887
- **Plugin:** ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce (`erp`), https://wordpress.org/plugins/erp/
- **Affected versions:** all versions before 1.17.11
- **Fixed in:** 1.17.11 (Update to 1.17.11 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-29)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/erp
- **Fix released:** 2026-10-28
- **Published:** 2026-10-29
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1887/

## Description

The ERP plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the body of inbound emails in all versions up to, and including, 1.17.10, due to insufficient input sanitization and output escaping when IMAP or Gmail inbound emails are saved as CRM activities and shown unescaped in the contact activity timeline. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute whenever a CRM user views the contact's activity feed. Exploitation requires the CRM inbound email (IMAP or Gmail) feature to be configured.

## References

- https://wpsec.com/vuln/WPSEC-2026-1887/
- https://plugins.svn.wordpress.org/erp/tags/1.17.11/
- https://wordpress.org/plugins/erp/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-1887/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
