CVE-2025-15665
Deferred Deferred - Pending Action

Stored Cross-Site Scripting in Ultimate Before After Image Slider & Gallery WordPress Plugin

Vulnerability report for CVE-2025-15665, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-14

Last updated on: 2026-07-14

Assigner: WPScan

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-14
Last Modified
2026-07-14
Generated
2026-08-03
AI Q&A
2026-07-14
EPSS Evaluated
2026-08-02
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
beaf ultimate_before_after_image_slider to 4.7.1 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a stored cross-site scripting (XSS) issue in the Ultimate Before After Image Slider & Gallery WordPress plugin before version 4.7.1.

The plugin fails to properly escape the value of the BEAF Slider widget's shortcode field before outputting it on the front end. This means that when the value is passed through the do_shortcode function, any non-shortcode content (like scripts) is echoed verbatim without sanitization.

An attacker with administrator-level access can exploit this by inserting malicious scripts into the shortcode field. These scripts will then execute in the browser of any visitor who loads a page displaying the affected widget.

  • Example: An admin could set the shortcode field to a payload like <img src=x onerror=alert(1)>.
  • When a visitor loads a page with the widget, the script runs automatically in their browser.
Detection Guidance

To detect this vulnerability on your WordPress site, you can check for the presence of the vulnerable plugin version and inspect the BEAF Slider widget's shortcode field for malicious scripts.

  • Verify the installed version of the Ultimate Before After Image Slider & Gallery plugin. If it is before 4.7.1, the site is vulnerable.
  • Inspect the BEAF Slider widget's shortcode field in the WordPress admin dashboard. Look for suspicious scripts or payloads like `<img src=x onerror=alert(1)>` or similar JavaScript code.
  • Use a WordPress security plugin or tool like WPScan to scan for known vulnerabilities in plugins. Example command: `wpscan --url yoursite.com --enumerate vp` (replace `yoursite.com` with your domain).
  • Check the front-end of your site for unexpected script execution or unusual behavior when loading pages containing the BEAF Slider widget.
Impact Analysis

If you are a website owner or visitor, this vulnerability can impact you in several ways:

  • For website owners with the vulnerable plugin: An attacker with admin access (or someone who gains admin access) could inject malicious scripts into your site. This could lead to unauthorized actions being performed on behalf of visitors, such as stealing session cookies, redirecting users to phishing sites, or defacing the website.
  • For visitors to a compromised site: If you visit a page with the affected widget, the injected script could execute in your browser. This might result in your sensitive data being stolen, your session being hijacked, or your device being exposed to further attacks.
  • For organizations: If your website handles sensitive data (e.g., user credentials, payment information), this vulnerability could lead to data breaches, reputational damage, and loss of customer trust.
Compliance Impact

This vulnerability can have significant implications for compliance with standards and regulations, depending on the context of the affected website:

  • GDPR (General Data Protection Regulation): If the vulnerable website processes personal data of EU citizens, a successful XSS attack could lead to unauthorized access or theft of this data. Under GDPR, organizations must implement appropriate security measures to protect personal data. Failure to patch this vulnerability could be seen as a violation of Article 32 (Security of Processing), potentially resulting in fines or legal action.
  • HIPAA (Health Insurance Portability and Accountability Act): If the website handles protected health information (PHI) in the U.S., an XSS attack could expose this sensitive data. HIPAA requires covered entities to safeguard PHI, and a breach due to this vulnerability could lead to non-compliance, penalties, or legal consequences.
  • PCI DSS (Payment Card Industry Data Security Standard): If the website processes payment card information, an XSS attack could compromise cardholder data. PCI DSS requires strict security controls to protect this data, and failure to address this vulnerability could result in non-compliance and potential fines.

In all cases, organizations should promptly update the plugin to the patched version (4.7.1 or later) to mitigate risks and maintain compliance with relevant regulations.

Mitigation Strategies

To mitigate this vulnerability, follow these immediate steps:

  • Update the Ultimate Before After Image Slider & Gallery plugin to version 4.7.1 or later, as this version contains the fix for the stored XSS vulnerability.
  • If updating is not immediately possible, disable the plugin temporarily to prevent exploitation.
  • Review all BEAF Slider widgets for malicious scripts in the shortcode field. Remove or sanitize any suspicious content.
  • Audit your WordPress site for signs of compromise, such as unauthorized admin accounts or unexpected script injections.
  • Restrict administrator-level access to trusted users only, as this vulnerability requires admin privileges to exploit.
  • Monitor your site for unusual activity, such as unexpected script execution or unauthorized changes to widgets or content.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-15665. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart