CVE-2026-8791 Booking System Trafft <= 1.0.17 - Authenticated (Subscriber+) Stored Cross-Site Scripting

Medium 6.4 Published Updated

Authenticated attackers can inject malicious scripts via a missing capability check in agency mode, executing code in visitors' browsers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-8791?

CVE-2026-8791 is a medium-severity cross-site scripting vulnerability in ameliabooking Booking System Trafft, published on 29 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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).

Weakness: CWE-79

Which versions are affected by CVE-2026-8791?

How do I fix CVE-2026-8791?

No fix has been published for CVE-2026-8791 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-8791 being exploited?

There is no known exploitation of CVE-2026-8791 in the wild and no public exploit code.

Sources

Also known as GHSA-xr8c-xpp9-8m4h.

Is CVE-2026-8791 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free