CVE-2026-8791
The Booking System Trafft plugin for WordPress is vulnerable to …
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).
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- plugins.trac.wordpress.org/browser/booking-system-trafft/tags/1.0.17/trafft.php#L139
- plugins.trac.wordpress.org/browser/booking-system-trafft/tags/1.0.17/trafft.php#L155
- plugins.trac.wordpress.org/browser/booking-system-trafft/tags/1.0.17/trafft.php#L176
- plugins.trac.wordpress.org/browser/booking-system-trafft/tags/1.0.17/trafft.php#L325
- plugins.trac.wordpress.org/browser/booking-system-trafft/tags/1.0.17/trafft.php#L354
- plugins.trac.wordpress.org/browser/booking-system-trafft/trunk/trafft.php#L139
- plugins.trac.wordpress.org/browser/booking-system-trafft/trunk/trafft.php#L155
- plugins.trac.wordpress.org/browser/booking-system-trafft/trunk/trafft.php#L176
- nvd.nist.gov/vuln/detail/CVE-2026-8791
- cve.org/CVERecord?id=CVE-2026-8791
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.