# Compact WP Audio Player <= 1.9.16 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'fileurl' Shortcode Attribute

- **ID:** WPSEC-2026-4668
- **Plugin:** Compact WP Audio Player (`compact-wp-audio-player`), https://wordpress.org/plugins/compact-wp-audio-player/
- **Affected versions:** all versions before 1.9.17
- **Fixed in:** 1.9.17 (Update to 1.9.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 Medium, affected versions Medium (as of 2026-12-05)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/compact-wp-audio-player
- **Fix released:** 2026-12-04
- **Published:** 2026-12-05
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4668/

## Description

The Compact WP Audio Player plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'fileurl' attribute of the sc_embed_player shortcode in all versions up to, and including, 1.9.16. This is due to insufficient escaping: the value is passed only through esc_url() before being placed inside a JavaScript string in the Play button's onClick handler and in an inline script, and HTML-encoded quotes are decoded before the handler runs. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page and interacts with the player.

Also published later by wordfence as CVE-2026-139975.

## References

- https://wpsec.com/vuln/WPSEC-2026-4668/
- https://plugins.svn.wordpress.org/compact-wp-audio-player/tags/1.9.17/
- https://wordpress.org/plugins/compact-wp-audio-player/

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

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.
