CVE-2026-50766: Koha Library Management System stored XSS in OPAC item detail page

CVE-2026-50766 · Severity: info · CVSS 0 · Published 2026-06-26

A security vulnerability exists in the Koha Library Management System, a platform used by libraries to manage catalogs and patron records. An authorized staff member can inject malicious code into the public notes section of a book or item. When other users, including members of the general public browsing the library's online catalog, view that item, the malicious code executes in their browser, potentially allowing for the theft of login information or unauthorized actions.

Technologies: Koha Community Koha. Vendors: Koha Community.

Quick answers

Is CVE-2026-50766 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-50766 being exploited in the wild.
How severe is CVE-2026-50766?
Informational severity, with a CVSS score of 0, published 26 June 2026.
Which products and versions are affected?
Koha Community Koha Through 25.11.
Is there a fix for CVE-2026-50766?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-50766 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-50766?
Check whether you run Koha Community Koha 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 stored cross-site scripting (XSS) vulnerability exists in the OPAC (Online Public Access Catalogue) item detail page of Koha. The root cause is the failure to sanitize the 'items.itemnotes' field before storage and the subsequent use of the '| $raw' filter in the Template Toolkit (specifically in opac-detail.tt), which renders the content without HTML encoding. An authenticated attacker with 'edit_items' permissions can inject arbitrary JavaScript into the Public Note field. This script is then executed in the context of any user, including unauthenticated public visitors, who views the affected item's detail page. The vulnerability is present in versions through 25.11.

Affected products

  • Koha Koha Library Management System Through 25.11

Timeline

  • 2026-06-26: disclosed: CVE published to NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.