# MainWP Child Reports <= 2.3.1 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Report Filter and Exclusion Rule Labels

- **ID:** WPSEC-2026-4641
- **Plugin:** MainWP Child Reports (`mainwp-child-reports`), https://wordpress.org/plugins/mainwp-child-reports/
- **Affected versions:** all versions before 2.4
- **Fixed in:** 2.4 (Update to 2.4 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/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-12-04)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/mainwp-child-reports
- **Fix released:** 2026-12-03
- **Published:** 2026-12-04
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4641/

## Description

The MainWP Child Reports plugin for WordPress is vulnerable to Stored Cross-Site Scripting via user display names shown in the report user filter and in saved exclusion rules in all versions up to, and including, 2.3.1. This is due to the select2 templates and the exclusion-rule option setup scripts adding option labels and the selected user's name to the page as HTML instead of text. HTML-encoded markup in a display name is decoded back into live markup by the browser. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts that execute when an administrator views the plugin's reports or exclusion settings pages.

## References

- https://wpsec.com/vuln/WPSEC-2026-4641/
- https://plugins.svn.wordpress.org/mainwp-child-reports/tags/2.4/
- https://wordpress.org/plugins/mainwp-child-reports/

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

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.
