# Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin <= 3.0.1 - Authenticated (Customer+) Stored Cross-Site Scripting via Improper unfiltered_html Capability Assignment

- **ID:** WPSEC-2026-0805
- **Plugin:** Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental (`tourfic`), https://wordpress.org/plugins/tourfic/
- **Affected versions:** from 2.13.11 before 3.0.2
- **Fixed in:** 3.0.2 (Update to 3.0.2 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-269
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-12)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/tourfic
- **Fix released:** 2026-10-11
- **Published:** 2026-10-12
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0805/

## Description

The Tourfic plugin for WordPress is vulnerable to Stored Cross-Site Scripting via improper privilege management in versions 2.13.11 to 3.0.1, due to the plugin's tf_customer_role_caps() function, which runs on init whenever WooCommerce is active, permanently adding the unfiltered_html capability to the WooCommerce 'customer' role. This makes it possible for authenticated attackers with a customer account, which anyone can get on sites that allow WooCommerce account registration, to bypass WordPress HTML filtering on single-site installations, for example in comments, and inject arbitrary web scripts that execute whenever a user, including an administrator, views the affected content.

## References

- https://wpsec.com/vuln/WPSEC-2026-0805/
- https://plugins.svn.wordpress.org/tourfic/tags/3.0.2/
- https://wordpress.org/plugins/tourfic/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-0805/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
