# rtMedia for WordPress, BuddyPress and bbPress <= 4.7.16 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Comment Uploader Shortcode Attributes

- **ID:** WPSEC-2026-2808
- **Plugin:** rtMedia for WordPress, BuddyPress and bbPress (`buddypress-media`), https://wordpress.org/plugins/buddypress-media/
- **Affected versions:** from 4.3 before 4.7.17
- **Fixed in:** 4.7.17 (Update to 4.7.17 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-11-10)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/buddypress-media
- **Fix released:** 2026-11-09
- **Published:** 2026-11-10
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2808/

## Description

The rtMedia for WordPress, BuddyPress and bbPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'upload_parent_id_type', 'upload_parent_id' and 'upload_parent_id_context' attributes of the plugin's 'rtmedia_uploader' shortcode in all versions up to, and including, 4.7.16. This is due to insufficient output escaping: these values were concatenated unescaped into the id and data-media_context HTML attributes of the comment uploader markup, which was echoed either raw or filtered with an allowlist that permits script and iframe tags. This makes it possible for authenticated attackers, with contributor-level access and above through post shortcodes, and subscribers who can upload media through a media description, to inject arbitrary web scripts in pages that will execute whenever a logged-in user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-2808/
- https://plugins.svn.wordpress.org/buddypress-media/tags/4.7.17/
- https://wordpress.org/plugins/buddypress-media/

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

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.
