{
 "id": "WPSEC-2026-1009",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1009/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1009/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1009/index.md",
 "title": "Better Payment <= 2.4.1 - Unauthenticated Open Redirect via PayPal 'return' and 'cancel_return' Parameters",
 "description": "The Better Payment plugin for WordPress is vulnerable to Open Redirect via the 'return' and 'cancel_return' parameters of the Elementor form's PayPal handler in all versions up to, and including, 2.4.1, due to the URLs being passed to PayPal after only esc_url_raw(), without a check that they point to the site. The handler is open to logged-out users and its nonce is printed on the public payment form. This makes it possible for unauthenticated attackers to send a logged-out visitor who submits a crafted payment form through PayPal to an arbitrary external site once the payment is completed or cancelled.",
 "plugin": {
  "slug": "better-payment",
  "name": "Better Payment",
  "full_name": "Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More",
  "wordpress_org": "https://wordpress.org/plugins/better-payment/",
  "advisories_url": "https://wpsec.com/vuln/plugin/better-payment/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/better-payment"
 },
 "type": "REDIRECT",
 "cwe": [
  "CWE-601"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 4.7,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "2.4.2",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 2.4.2"
  ]
 },
 "introduced_in": null,
 "fixed_in": "2.4.2",
 "remediation": "Update to 2.4.2 or later.",
 "fix_released": "2026-10-14T11:07:04+00:00",
 "published": "2026-10-15T11:47:22+00:00",
 "updated": "2026-10-14T19:50:15.908876+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1009/",
  "https://plugins.svn.wordpress.org/better-payment/tags/2.4.2/",
  "https://wordpress.org/plugins/better-payment/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/better-payment",
 "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-10-15"
 }
}