Ultimate Before After Image Slider & Gallery – BEAF <= 4.7.22 - Authenticated (Author+) Stored Cross-Site Scripting via Slider Orientation
- ID
- WPSEC-2026-3823
- Plugin
- Ultimate Before After Image Slider & Gallery – BEAF (beaf-before-and-after-gallery)
- Affected
- all versions before 4.7.23
- Remediation
- Update to 4.7.23 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-24
- Attack surface
- Ultimate Before After Image Slider & Gallery – BEAF on WPSec AttackSurface
- Fix released
- Published
Description
The BEAF plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the slider orientation ('bafg_image_styles') setting in all versions up to, and including, 4.7.22 due to insufficient input sanitization and output escaping. The image select field saved the value without validation, and the shortcode output it as the slider orientation without restricting it to the allowed values. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses a page displaying the injected slider.
References
- https://wpsec.com/vuln/WPSEC-2026-3823/
- https://plugins.svn.wordpress.org/beaf-before-and-after-gallery/tags/4.7.23/
- https://wordpress.org/plugins/beaf-before-and-after-gallery/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS