{
 "id": "WPSEC-2026-1857",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1857/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1857/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1857/index.md",
 "title": "VikBooking Hotel Booking Engine & PMS <= 1.8.19 - Unauthenticated Stored Cross-Site Scripting via 'optionals' Parameter",
 "description": "The VikBooking Hotel Booking Engine & PMS plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'optionals' parameter of the front-end booking flow in all versions up to, and including, 1.8.19 due to insufficient input sanitization and output escaping. Room option quantities supplied by the booker were not cast to integers before being stored with the reservation. They were later echoed unescaped into the value attribute of the admin edit-booking form. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute whenever an administrator or staff member opens the affected reservation for editing.",
 "plugin": {
  "slug": "vikbooking",
  "name": "VikBooking Hotel Booking Engine & PMS",
  "full_name": "VikBooking Hotel Booking Engine & PMS",
  "wordpress_org": "https://wordpress.org/plugins/vikbooking/",
  "advisories_url": "https://wpsec.com/vuln/plugin/vikbooking/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/vikbooking"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 7.2,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N",
  "severity": "High"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "1.8.20",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 1.8.20"
  ]
 },
 "introduced_in": null,
 "fixed_in": "1.8.20",
 "remediation": "Update to 1.8.20 or later.",
 "fix_released": "2026-10-27T16:00:00+00:00",
 "published": "2026-10-28T16:47:31+00:00",
 "updated": "2026-10-28T09:34:04.603619+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1857/",
  "https://plugins.svn.wordpress.org/vikbooking/tags/1.8.20/",
  "https://wordpress.org/plugins/vikbooking/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/vikbooking",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "None seen",
  "as_of": "2026-10-28"
 }
}