Skip to main content

BEAF Gallery Plugin CVE-2025-15665

| EUVDEUVD-2025-210458 MEDIUM
2026-07-14 WPScan GHSA-h7cp-867p-67hq
5.4
CVSS 3.1 · Vendor: WPScan
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker obtains WordPress administrator credentials
  2. Delivery
    Access BEAF Slider widget configuration panel
  3. Exploit
    Inject malicious JavaScript into shortcode field
  4. Install
    Save widget on public-facing page
  5. C2
    Victim visits page containing widget
  6. Execute
    Browser executes stored script
  7. Impact
    Attacker captures session tokens or credentials

Vulnerability Assessment

Exploitation Conditions

Exploitation requires the attacker to hold an authenticated administrator-level account on the target WordPress site - this is the primary limiting factor and substantially constrains opportunistic mass exploitation. The BEAF Slider widget must be actively placed on at least one publicly accessible page or post for the stored payload to reach victims. Victim-side triggering requires a user (any role, including unauthenticated visitors) to load the page displaying the compromised widget (UI:R per CVSS). The vulnerability is not exploitable by lower-privileged WordPress roles such as Editor, Author, or Subscriber. There is no special server-side configuration or non-default setting required beyond the plugin being installed and a BEAF Slider widget being deployed on a page.

Impact

The NVD CVSS 3.1 score of 5.4 Medium uses AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N; however, the CVE description explicitly states 'users with administrator-level access,' which maps more accurately to PR:H rather than PR:L in standard CVSS terminology - this discrepancy should be verified against the vendor advisory. The Changed scope (S:C) correctly reflects that the injected payload executes in a victim browser context separate from the WordPress application itself. SSVC classifies the exploitation status as poc-level, not automatable, with partial technical impact - consistent with the access-gated nature of the flaw. No EPSS score was provided in the intelligence data, and the absence of a KEV listing indicates no confirmed widespread active exploitation. The public POC published by WPScan lowers the barrier for exploitation but the administrator-privilege prerequisite substantially narrows the realistic threat pool to malicious insiders, compromised admin accounts, or social-engineering scenarios. This is a genuine but moderate-priority remediation item, particularly elevated in WordPress multisite deployments where sub-site administrators are less fully trusted.

Exploit ScenarioDerived

A malicious or compromised WordPress administrator navigates to the BEAF Slider widget settings and enters a JavaScript payload (e.g., a cookie-stealing script) into the shortcode field, then publishes or updates the page. Every subsequent visitor who loads that page receives the injected script executed in their browser context, enabling session hijacking, credential harvesting, or drive-by malware delivery. A public proof-of-concept for this technique has been disclosed by WPScan, making reproduction straightforward for any attacker who has obtained WordPress admin credentials.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 14, 2026

Stored cross-site scripting in the Ultimate Before After Image Slider & Gallery WordPress plugin (all versions before 4.7.1) enables users with administrator-level access to plant persistent malicious scripts via the BEAF Slider widget's shortcode field, which then execute silently in the browsers of any site visitor loading a page displaying the widget. The plugin pipes the field value through WordPress's native do_shortcode() function without sanitizing or escaping the output, causing unrecognized content to be echoed verbatim to the rendered page. A publicly available proof-of-concept has been disclosed by WPScan; no active exploitation has been confirmed in the CISA Known Exploited Vulnerabilities catalog.

RemediationAI

Update the Ultimate Before After Image Slider & Gallery WordPress plugin to version 4.7.1 or later, which is confirmed by WPScan to address the missing output escaping in the BEAF Slider widget's shortcode field rendering path. The advisory is available at https://wpscan.com/vulnerability/754f0960-efc8-426f-bb1d-7cceec920910/. If immediate patching is not feasible, restrict configuration of the BEAF Slider widget exclusively to fully trusted administrator accounts and audit all existing BEAF Slider widget instances for injected script payloads - check the shortcode field of every widget instance across all pages and posts. In WordPress multisite environments, consider temporarily disabling the plugin network-wide until the patch can be applied, as sub-site administrators represent a lower-trust population. Note that restricting widget access does not remove already-stored payloads; a manual audit of existing widget configurations is required as a compensating control.

Affected VersionsENISA

Ultimate Before After Image Slider & Gallery 0 <4.7.1

Affected Packages

euvd ultimate_before_after_image_slider_gallery fix: 4.7.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Ultimate Before After Image Slider & Gallery plugin exposes a BEAF Slider widget configurable via WordPress's shortcode or block editor interfaces. The underlying flaw is that the plugin passes the user-supplied shortcode field value directly through WordPress core's do_shortcode() function and then outputs its return value to the page without applying wp_kses, esc_html, or any equivalent output escaping. WordPress's do_shortcode() is designed to execute registered shortcode handlers and return their output; critically, content that does not match any registered shortcode tag is returned verbatim - making it an unsafe rendering path for untrusted input. This creates a persistent (stored) XSS sink. Although no CWE was formally assigned, the root cause maps squarely to CWE-79 (Improper Neutralization of Input During Web Page Generation). The affected CPE is cpe:2.3:a:unknown:ultimate_before_after_image_slider_&_gallery:*:*:*:*:*:*:*:*, covering all releases prior to 4.7.1.

Know when Ultimate Before After Image Slider Gallery gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (WPScan) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

Administrator-level WordPress access maps to PR:H; description explicitly names this role, making the provided PR:L appear to understate the privilege barrier.

3.1 AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (WPScan).

CVSS VectorVendor: WPScan

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

4
CVSS changed
Jul 14, 2026 - 13:22 NVD
5.4 (MEDIUM)
Patch available
Jul 14, 2026 - 11:17 EUVD
CVE Published
Jul 14, 2026 - 06:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 14, 2026 - 06:00 cve.org
MEDIUM 5.4

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
niche WordPress image comparison slider plugin
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

References

Advisories & patches

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy