{
 "id": "WPSEC-2026-3823",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3823/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3823/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3823/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-3823.json",
 "title": "Ultimate Before After Image Slider & Gallery – BEAF <= 4.7.22 - Authenticated (Author+) Stored Cross-Site Scripting via Slider Orientation",
 "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.",
 "plugin": {
  "slug": "beaf-before-and-after-gallery",
  "name": "Ultimate Before After Image Slider & Gallery – BEAF",
  "full_name": "Ultimate Before After Image Slider & Gallery – BEAF",
  "wordpress_org": "https://wordpress.org/plugins/beaf-before-and-after-gallery/",
  "advisories_url": "https://wpsec.com/vuln/plugin/beaf-before-and-after-gallery/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/beaf-before-and-after-gallery"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "4.7.23",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 4.7.23"
  ]
 },
 "introduced_in": null,
 "fixed_in": "4.7.23",
 "remediation": "Update to 4.7.23 or later.",
 "fix_released": "2026-11-24T00:17:41+00:00",
 "published": "2026-11-25T00:43:55+00:00",
 "updated": "2026-11-24T11:30:17.848487+00:00",
 "also_published_as": null,
 "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/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/beaf-before-and-after-gallery",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-11-24"
 }
}