CVE-2025-15665: BEAF < 4.7.1 - Admin+ Stored XSS via Widget Shortcode Field
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.
Security readout for executives and security teams
Plain-English summary
This WordPress plugin flaw lets an administrator-level user save script content in a BEAF Slider widget field. When visitors load a page showing that widget, the script can run in their browsers. Business risk is moderate because exploitation requires admin-level access, but compromise of an admin account could turn public pages into a visitor-targeting attack surface.
Executive priority
Treat as a moderate-priority web exposure issue. Prioritize public WordPress sites and any environment with many administrator accounts or weak admin account controls.
Technical view
Ultimate Before After Image Slider & Gallery before 4.7.1 fails to escape the BEAF Slider widget shortcode field before frontend output. The value is passed through do_shortcode, which can echo non-shortcode content verbatim, creating stored XSS. CVSS 3.1 is 5.4 with low attack complexity, required privileges, user interaction, and changed scope.
Likely exposure
Exposure is limited to WordPress sites using the Ultimate Before After Image Slider & Gallery plugin before 4.7.1, especially pages displaying the BEAF Slider widget.
Exploitation context
The bundle does not show KEV listing or confirmed active exploitation. WPScan is tagged as an exploit reference, but the vulnerability requires administrator-level access and visitor loading of an affected widget page.
Researcher notes
Evidence supports stored XSS via insufficient output escaping in the widget shortcode field. Affected-version metadata in the bundle is sparse, so rely on the stated before-4.7.1 boundary and vendor/WPScan updates.
Mitigation direction
Upgrade Ultimate Before After Image Slider & Gallery to version 4.7.1 or later.
Review vendor and WPScan guidance for any additional remediation details.
Restrict WordPress administrator access to trusted, MFA-protected accounts.
Audit pages using the BEAF Slider widget for unexpected script content.
Validation and detection
Inventory WordPress sites for the plugin and confirm installed versions.
Identify any installation running a version before 4.7.1.
Review BEAF Slider widget shortcode field values for suspicious content.
Check WordPress admin audit logs for recent widget or page changes.
Verify affected pages render safely after updating or removing unsafe content.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-79: User-session and phishing behavior lookup
Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-79 · source CWE mapping
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.