Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97470 Overview
CVE-2026-97470 is a stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental plugin for WordPress. The flaw affects all versions up to and including 3.0.1. The plugin grants the unfiltered_html capability to the WooCommerce customer role, allowing authenticated users to inject arbitrary scripts through comment content. Because WooCommerce customer accounts are self-registerable without admin approval, any unauthenticated visitor can register and exploit the issue.
Critical Impact
Stored payloads are returned unsanitized through the public /wp-json/wp/v2/comments REST endpoint and RSS feeds, exposing headless clients, feed readers, and third-party widgets that render comment content.
Affected Products
- Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental plugin for WordPress
- All versions up to and including 3.0.1
- Deployments requiring WooCommerce to be active alongside Tourfic
Discovery Timeline
- 2026-10-16 - CVE-2026-97470 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-97470
Vulnerability Analysis
The Tourfic plugin grants the unfiltered_html capability to the WooCommerce customer role. This capability normally restricts raw HTML and script submission to administrators and editors. By extending it to subscriber-level users, the plugin permits authenticated attackers to store arbitrary HTML and JavaScript in comment content.
The plugin's own listing-page templates sanitize output with wp_kses_post(). However, the stored comment payload is returned unsanitized through other WordPress output surfaces. The REST endpoint /wp-json/wp/v2/comments exposes content.rendered without additional filtering, and post and comment RSS feeds emit the same raw payload.
Any headless front-end, feed reader, or third-party widget that renders this content will execute the injected script in the context of the viewing user.
Root Cause
The root cause is an overly broad capability assignment combined with inconsistent output escaping. Granting unfiltered_html to a self-registerable role violates the WordPress principle of least privilege. The plugin relies on template-level sanitization in wp_kses_post() but does not sanitize at the storage layer, leaving every downstream consumer responsible for its own escaping.
Attack Vector
An attacker registers a WooCommerce customer account, which requires no administrator approval. The attacker submits a comment containing a JavaScript payload on any post or product. The payload is stored verbatim. When a client fetches the comment through the public REST API or an RSS feed, the script executes in the client's rendering context. See the Wordfence Vulnerability Report and the referenced Tourfic TF_Review source code for implementation details.
Detection Methods for CVE-2026-97470
Indicators of Compromise
- Comment records in wp_comments containing <script>, onerror=, onload=, or javascript: strings submitted by customer-role accounts.
- Unexpected creation of WooCommerce customer accounts followed shortly by comment submissions on unrelated posts.
- Outbound requests from site visitors to attacker-controlled domains referenced in stored comment payloads.
Detection Strategies
- Query the WordPress database for comments authored by users with the customer role that contain HTML tags or script attributes.
- Review REST API access logs for anonymous GET /wp-json/wp/v2/comments requests returning payloads with embedded scripts.
- Inspect RSS feed consumers and headless front-ends for script execution originating from comment content.
Monitoring Recommendations
- Enable WordPress audit logging for role capability changes and new user registrations against the customer role.
- Monitor web server logs for high-volume registration followed by comment POST requests from the same IP.
- Alert on new outbound domains referenced in comment content served through the REST API or feeds.
How to Mitigate CVE-2026-97470
Immediate Actions Required
- Update the Tourfic plugin to a release later than 3.0.1 once the vendor publishes a fix.
- Audit existing comments for stored script payloads and remove or sanitize affected records.
- Revoke the unfiltered_html capability from the customer role until a patched version is installed.
Patch Information
At the time of NVD publication on 2026-10-16, no fixed version is identified in the enriched advisory data. Monitor the Wordfence Vulnerability Report and the official plugin repository for updated release information.
Workarounds
- Disable the Tourfic plugin or deactivate WooCommerce if business operations allow, since both must be active for exploitation.
- Restrict new WooCommerce customer registrations by requiring administrator approval or disabling self-registration.
- Add a server-side filter that strips unfiltered_html from the customer role on every request using a mu-plugin.
- Place a web application firewall rule in front of POST /wp-comments-post.php to block script tags from non-privileged users.
# Configuration example: remove unfiltered_html from the WooCommerce customer role
wp eval 'get_role("customer")->remove_cap("unfiltered_html");'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

