CVE-2026-50765: Koha Library Management System XSS in patron restriction type administration page

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

Koha is an open-source system used by libraries to manage books and member records. A security flaw in the administrative interface allows a user with staff privileges to inject malicious code into the system. This code could then execute in the browsers of other library staff members, potentially leading to unauthorized actions or the theft of sensitive administrative session information.

Technologies: Koha Community Koha. Vendors: Koha Community.

Quick answers

Is CVE-2026-50765 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-50765 being exploited in the wild.
How severe is CVE-2026-50765?
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-50765?
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-50765 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-50765?
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 patron restriction type administration page of Koha through version 25.11. The root cause is located in 'admin/restrictions.tt' (lines 263-267), where the 'display_text' field is rendered using the '$raw' filter inside a JavaScript object literal without proper encoding or sanitization. An authenticated attacker with administrator or 'superlibrarian' privileges can inject a payload (e.g., a script block termination sequence) into the restriction type label. When other staff members view the restriction types page, the injected script executes in their browser context. A fix involves replacing the '$raw' filter with the 'json' filter to ensure proper encoding.

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.