Junglewise Threat Intelligence

CVE-2026-12937: Themefic Tourfic SQL injection in tf_room_availability

CVE-2026-12937 · Severity: high · CVSS 7.5 · Published 2026-06-25

Technologies: Themefic Tourfic. Vendors: Themefic.

Executive brief

The Tourfic plugin for WordPress, which provides travel and hotel booking functionality, contains a security flaw that allows unauthorized individuals to access sensitive database information. By exploiting a weakness in how the plugin handles booking requests, an attacker can bypass security controls to view private data. This could lead to the exposure of customer records, site configuration details, or other confidential information stored in the website's database.

Technical details

A SQL injection vulnerability exists in the Tourfic WordPress plugin due to insufficient escaping of the 'post_id' parameter and a lack of SQL query preparation in the tf_room_availability AJAX handler. The vulnerability is accessible to unauthenticated attackers because the wp_ajax_nopriv_tf_room_availability handler is used, and the necessary security nonce is publicly exposed on single-hotel page templates. An attacker can retrieve this nonce and submit a crafted request to append malicious SQL queries to existing database commands. This allows for the unauthorized extraction of sensitive data from the WordPress database. The issue affects all versions up to and including 2.22.7.

Affected products

  • Themefic Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin up to, and including, 2.22.7

Timeline

  • 2026-06-25: disclosed: Initial publication of the CVE record.
  • 2026-06-25: advisory: Wordfence published the vulnerability details.

References

Related threats