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

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

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.

Technologies: Themefic Tourfic. Vendors: Themefic.

Quick answers

Is CVE-2026-12937 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-12937 being exploited in the wild.
How severe is CVE-2026-12937?
High severity, with a CVSS score of 7.5, published 25 June 2026.
Which products and versions are affected?
Themefic Tourfic up to, and including, 2.22.7.
Is there a fix for CVE-2026-12937?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-12937 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-12937?
Check whether you run Themefic Tourfic at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.