{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-8791","published":"2026-07-29T11:16:50.690000Z","last_modified":"2026-07-30T14:01:30.413000Z","status":"Deferred","cvss":{"version":"3.1","score":6.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","source":"security@wordfence.com","primary":false},"auth":true,"cwes":["CWE-79"],"cpes":[],"cpes_truncated":false,"vendors":["ameliabooking"],"products":["ameliabooking/booking-system-trafft"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":38,"links":{"html_es":"/es/cve/CVE-2026-8791/","html_en":"/en/cve/CVE-2026-8791/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-8791","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-8791"},"untrusted":{"vendor_name":"ameliabooking","product_name":"Booking System Trafft","desc_en":"The Booking System Trafft plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `bookingWebsiteUrl` setting in all versions up to, and including, 1.0.17 due to a missing capability check on the `set_options` AJAX action when the plugin is operating in agency mode. The `trafftSetOptions()` handler verifies a nonce that is exposed to any authenticated user (it is printed inline on every admin page, including profile.php) but performs no capability check before calling `update_option('trafft_option', ['bookingWebsiteUrl' => ...])`. This setting is then used by `trafftAdminAssets()` to enqueue `<bookingWebsiteUrl>/embed.js` as a script on every front-end page that renders the booking shortcode. This makes it possible for authenticated attackers, with Subscriber-level access and above, to point the embed-script URL at an attacker-controlled origin and execute arbitrary JavaScript in the browser of every site visitor (including admins).","affected":[{"untrusted_vendor":"ameliabooking","untrusted_product":"Booking System Trafft","versions":[]}],"references":[{"url":"https://plugins.trac.wordpress.org/browser/booking-system-trafft/tags/1.0.17/trafft.php#L139","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/booking-system-trafft/tags/1.0.17/trafft.php#L155","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/booking-system-trafft/tags/1.0.17/trafft.php#L176","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/booking-system-trafft/tags/1.0.17/trafft.php#L325","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/booking-system-trafft/tags/1.0.17/trafft.php#L354","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/booking-system-trafft/trunk/trafft.php#L139","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/booking-system-trafft/trunk/trafft.php#L155","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/booking-system-trafft/trunk/trafft.php#L176","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/booking-system-trafft/trunk/trafft.php#L325","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/booking-system-trafft/trunk/trafft.php#L354","tags":[]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/e93060cf-2df3-4d45-a1f2-304f443d58bc?source=cve","tags":[]}]}}