# Yatra <= 3.1.2 - Unauthenticated Insecure Direct Object Reference to Payment Bypass via Payment Confirmation and Return Endpoints

- **ID:** WPSEC-2026-3732
- **Plugin:** Yatra – Travel Booking & Tour Operator Software (`yatra`), https://wordpress.org/plugins/yatra/
- **Affected versions:** from 3.0.0 before 3.1.3
- **Fixed in:** 3.1.3 (Update to 3.1.3 or later.)
- **Severity:** High 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-11-23)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/yatra
- **Fix released:** 2026-11-22
- **Published:** 2026-11-23
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3732/

## Description

The Yatra plugin for WordPress is vulnerable to Insecure Direct Object Reference via the public payment confirmation and payment return endpoints in all versions up to, and including, 3.1.2 due to the booking_id and transaction_id being taken from the request without verifying that the gateway transaction belongs to that booking, is completed, matches the booking's currency, and was not already recorded, and due to the full amount due being credited when the gateway reported no paid amount. This makes it possible for unauthenticated attackers to replay a single cheap genuine payment to mark other bookings as fully paid.

## References

- https://wpsec.com/vuln/WPSEC-2026-3732/
- https://plugins.svn.wordpress.org/yatra/tags/3.1.3/
- https://wordpress.org/plugins/yatra/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3732/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
