CVE-2026-12937
Deferred Deferred - Pending Action

SQL Injection in Tourfic WordPress Plugin

Vulnerability report for CVE-2026-12937, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-25

Last updated on: 2026-06-25

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-25
Last Modified
2026-06-25
Generated
2026-07-15
AI Q&A
2026-06-25
EPSS Evaluated
2026-07-14
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
tourfic ai_powered_travel_booking_hotel_booking_car_rental_wordpress_plugin to 2.22.7 (inc)
themeisle tourfic to 2.22.7 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Detection Guidance

This vulnerability involves a generic SQL Injection via the 'post_id' parameter in the Tourfic WordPress plugin. Detection can focus on monitoring for unusual or suspicious SQL queries involving the 'post_id' parameter, especially those that appear to append additional SQL commands.

Since the AJAX handler 'wp_ajax_nopriv_tf_room_availability' is accessible to unauthenticated users, you can monitor HTTP requests to this endpoint for suspicious 'post_id' parameter values.

Suggested commands to detect exploitation attempts include using web server logs or network monitoring tools to search for requests like:

  • grep 'wp-admin/admin-ajax.php?action=tf_room_availability' /var/log/apache2/access.log | grep 'post_id='
  • Using tools like curl or wget to test the endpoint with crafted 'post_id' values to see if the server responds abnormally.

Additionally, database query logs can be reviewed for suspicious queries containing unexpected SQL syntax appended to 'post_id' values.

Executive Summary

The Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin is vulnerable to a generic SQL Injection via the 'post_id' parameter in all versions up to and including 2.22.7.

This vulnerability occurs because the plugin does not properly escape the user-supplied 'post_id' parameter and does not sufficiently prepare the existing SQL query.

As a result, unauthenticated attackers can append additional SQL queries to the existing ones, potentially extracting sensitive information from the database.

The AJAX handler for this functionality is accessible to unauthenticated users, and a valid nonce can be obtained from the public single-hotel page, allowing attackers to reach the vulnerable code.

Impact Analysis

This vulnerability can allow unauthenticated attackers to extract sensitive information from the website's database by injecting malicious SQL queries.

Since the attacker does not need any privileges or user interaction, the risk is high.

The CVSS base score of 7.5 indicates a high severity impact on confidentiality, meaning sensitive data could be exposed.

However, the vulnerability does not impact integrity or availability directly.

Mitigation Strategies

Immediate mitigation steps include updating the Tourfic WordPress plugin to a version later than 2.22.7 where this vulnerability is fixed.

If an update is not immediately possible, restrict access to the AJAX handler 'wp_ajax_nopriv_tf_room_availability' to authenticated users only or block access to this endpoint via web server rules or a Web Application Firewall (WAF).

Additionally, monitor and block suspicious requests that attempt to exploit the 'post_id' parameter.

Implementing input validation and sanitization on the 'post_id' parameter in custom code or via security plugins can also help reduce risk.

Compliance Impact

The vulnerability allows unauthenticated attackers to perform SQL Injection attacks that can extract sensitive information from the database.

Such unauthorized access to sensitive data can lead to violations of data protection regulations like GDPR and HIPAA, which require the protection of personal and sensitive information.

Therefore, exploitation of this vulnerability could result in non-compliance with these common standards and regulations due to potential data breaches.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-12937. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart