Tourfic <= 2.22.7 - Unauthenticated SQL Injection via 'post_id' Parameter

7.5
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2026-12937
CVSS 7.5 (High)
Publicly Published June 24, 2026
Last Updated June 25, 2026
Researcher PRISM - Wordfence

Description

The Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin plugin for WordPress is vulnerable to generic SQL Injection via the 'post_id' parameter in all versions up to, and including, 2.22.7 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The AJAX handler is registered for unauthenticated users via wp_ajax_nopriv_tf_room_availability, and the required nonce is emitted on the public single-hotel page template, allowing unauthenticated attackers to freely obtain a valid nonce and reach the vulnerable code path.

Learn more about SQL Injection vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin

Software Type Plugin
Software Slug tourfic (view on wordpress.org)
Patched? Yes
Remediation Update to version 2.22.8, or a newer patched version
Affected Version
  • <= 2.22.7
Patched Version
  • 2.22.8

Recent vulnerabilities in Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin

# Title CVE ID CVSS Researchers Date
1 Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin <= 2.22.5 - Missing Authorization CVE-2026-57395 4.3 Sandesh Gawai July 8, 2026
2 Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin <= 2.22.5 - Missing Authorization CVE-2026-57392 5.3 Ramshath July 8, 2026
3 Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin <= 2.22.5 - Authenticated (Subscriber+) SQL Injection CVE-2026-56064 6.5 anhcd05 June 25, 2026
4 Tourfic <= 2.21.4 - Missing Authorization CVE-2026-39543 5.3 Bao - BlueRock March 28, 2026
5 Tourfic <= 2.15.3 - Authenticated (Admin+) Arbitrary File Upload CVE-2025-24650 7.2 I8BL January 24, 2025
6 Tourfic – Ultimate Hotel Booking, Travel Booking & Apartment Booking WordPress Plugin | WooCommerce Booking <= 2.15.3 - Authenticated (Subscriber+) SQL Injection CVE-2024-12032 6.5 Thái An December 24, 2024
7 Tourfic <= 2.14.5 - Missing Authorization in Multiple Functions CVE-2024-8860 4.3 September 13, 2024
8 Tourfic <= 2.11.20 - Cross-Site Request Forgery in Multiple Functions CVE-2024-8319 4.3 August 29, 2024
9 Tourfic <= 2.11.7 - Reflected Cross-Site Scripting CVE-2024-29137 6.1 LVT-tholv2k March 18, 2024
10 Tourfic <= 2.11.17 - Authenticated (Subscriber+) PHP Object Injection CVE-2024-29136 8.8 LVT-tholv2k March 18, 2024

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation