{
 "id": "WPSEC-2026-1354",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1354/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1354/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1354/index.md",
 "title": "User Profile Builder <= 4.0.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'redirect_url' Shortcode Attribute",
 "description": "The User Profile Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'redirect_url' attribute of the plugin's Edit Profile and Registration shortcodes in all versions up to, and including, 4.0.4. This is due to the wppb_build_redirect() function placing the redirect URL into a meta refresh tag without escaping. This makes it possible for authenticated attackers with Contributor-level access and above to inject arbitrary web scripts in pages. The scripts run when a user submits the form on the injected page.",
 "plugin": {
  "slug": "profile-builder",
  "name": "User Profile Builder",
  "full_name": "User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor",
  "wordpress_org": "https://wordpress.org/plugins/profile-builder/",
  "advisories_url": "https://wpsec.com/vuln/plugin/profile-builder/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/profile-builder"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 5.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "4.0.5",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 4.0.5"
  ]
 },
 "introduced_in": null,
 "fixed_in": "4.0.5",
 "remediation": "Update to 4.0.5 or later.",
 "fix_released": "2026-10-19T12:03:05+00:00",
 "published": "2026-10-21T12:44:50+00:00",
 "updated": "2026-10-21T12:33:28.419033+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1354/",
  "https://plugins.svn.wordpress.org/profile-builder/tags/4.0.5/",
  "https://wordpress.org/plugins/profile-builder/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/profile-builder",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-10-21"
 }
}