CVE-2025-15665 BEAF < 4.7.1 - Admin+ Stored XSS via Widget Shortcode Field
Administrators can inject malicious scripts via the widget shortcode field, leading to stored XSS execution in visitors' browsers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-15665?
CVE-2025-15665 is a medium-severity cross-site scripting vulnerability in Unknown Ultimate Before After Image Slider & Gallery, published on 14 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
The Ultimate Before After Image Slider & Gallery WordPress plugin before 4.7.1 does not escape the value of the BEAF Slider widget's shortcode field before outputting it on the front end (the value is passed through do_shortcode, which echoes non-shortcode content verbatim), allowing users with administrator-level access to store a script that executes in the browser of any visitor who loads a page displaying the widget.
Which versions are affected by CVE-2025-15665?
How do I fix CVE-2025-15665?
No fix has been published for CVE-2025-15665 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-15665 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-15665 exists.
Sources
Also known as GHSA-h7cp-867p-67hq.