# CVE-2026-40791: WP Time Slots Booking Form unauthenticated XSS

Source: https://junglewise.ai/threats/cve-2026-40791-wp-time-slots-booking-form-unauthenticated-xss  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-15. Updated: 2026-06-15  
License: CC BY 4.0 with a link back

CVE-2026-40791 · Severity: high · CVSS 7.1 · Published 2026-06-15

The WP Time Slots Booking Form plugin for WordPress, which allows websites to manage appointment scheduling, contains a security flaw that allows unauthenticated attackers to inject malicious scripts. If a site administrator or visitor interacts with a specially crafted link or page, the attacker could execute code in their browser. This can lead to unauthorized actions, theft of session information, or the display of fraudulent content on the website.

Vendors: [CodePeople](https://junglewise.ai/threats/vendors/codepeople).

## Quick answers

**Is CVE-2026-40791 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-40791 being exploited in the wild.

**How severe is CVE-2026-40791?** High severity, with a CVSS score of 7.1, published 15 June 2026.

**Which products and versions are affected?** CodePeople WP Time Slots Booking Form <= 1.2.46.

**Is there a fix for CVE-2026-40791?** A patch was published on 2026-04-23: Version 1.2.47 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-40791 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-40791?** Check whether you run CodePeople WP Time Slots Booking Form 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 Cross-Site Scripting (XSS) vulnerability exists in the WP Time Slots Booking Form plugin for WordPress due to improper neutralization of user-supplied input during web page generation (CWE-79). The flaw allows an unauthenticated remote attacker to inject arbitrary JavaScript or HTML payloads. Exploitation requires user interaction, typically from a privileged user clicking a malicious link or visiting a crafted page. Successful exploitation can result in the execution of scripts in the context of the victim's browser, potentially leading to session hijacking or site defacement. The issue is resolved in version 1.2.47.

## Affected products

- CodePeople WP Time Slots Booking Form <= 1.2.46

## Timeline

- 2026-03-24: other: Reported by Daniel Wade
- 2026-04-23: disclosed: Initial disclosure by Patchstack
- 2026-06-15: advisory: NVD published date
- 2026-04-23: patched: Version 1.2.47 released

## References

- [https://patchstack.com/database/wordpress/plugin/wp-time-slots-booking-form/vulnerability/wordpress-wp-time-slots-booking-form-plugin-1-2-46-cross-site-scripting-xss-vulnerability?_s_id=cve](https://patchstack.com/database/wordpress/plugin/wp-time-slots-booking-form/vulnerability/wordpress-wp-time-slots-booking-form-plugin-1-2-46-cross-site-scripting-xss-vulnerability?_s_id=cve)

## Related threats

- [CodePeople WP Time Slots Booking Form SQL injection](https://junglewise.ai/threats/cve-2026-48882-codepeople-wp-time-slots-booking-form-sql-injection)
