Skip to main content

Koha Library System CVE-2026-50766

| EUVDEUVD-2026-39941 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-26 mitre GHSA-vpm8-cwf9-2c7w
5.4
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Obtain authenticated Koha account with edit_items permission
  2. Delivery
    Navigate to item record for high-traffic title
  3. Exploit
    Inject XSS payload into items.itemnotes field
  4. Execution
    Victim patron or staff browses OPAC item detail page
  5. Persist
    Payload executes in victim's browser context
  6. Impact
    Exfiltrate session token or perform action as victim

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
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 the attacker to hold an authenticated Koha account with the edit_items permission granted; unauthenticated or standard patron-level access is insufficient to inject the payload. A victim (patron or staff) must subsequently navigate to the OPAC item detail page for the poisoned item record - passive browsing of catalog results triggers the payload without any additional user action beyond page load. Exploitation is limited to the OPAC-facing interface; the Koha staff client rendering of the same field may or may not be affected and should be separately verified. The attack is not automatable at scale without first acquiring edit_items credentials. Non-default configuration is not required for the vulnerability itself, but the risk is elevated in deployments where edit_items is granted to a large or low-trust staff group.

Impact

The CVSS 5.4 Medium score is consistent with a stored XSS requiring low privilege (PR:L - edit_items permission) and passive victim interaction (UI:R - visiting the item detail page). The Scope Change (S:C) correctly elevates the base score since the exploit crosses trust boundaries into victims' browsers. EPSS at 0.21% (12th percentile) is very low, indicating this vulnerability has not attracted measurable exploit-tool coverage or threat actor attention at time of analysis. There is no CISA KEV listing and no confirmed public exploit code. The primary real-world risk is session hijacking of OPAC patrons or, more seriously, staff members who browse item records - the latter could enable privilege escalation within the Koha interface. The exploitation prerequisite of edit_items permission is a meaningful barrier: this is not a pre-authentication or default-user flaw. The combination of low EPSS, no KEV, and authenticated requirement places this as a lower-priority finding unless the affected library instance grants edit_items to a broad or untrusted staff population.

Exploit ScenarioDerived

A cataloging staff member or any user with edit_items permission logs into Koha and edits an item record for a popular title, inserting a JavaScript payload such as a session-cookie-stealing script into the item public notes field. When any OPAC patron - or a staff member browsing the catalog - views the item detail page for that title, the payload silently executes in their browser, potentially exfiltrating their session token to an attacker-controlled endpoint. No public proof-of-concept has been confirmed, but the attack technique is well-understood and straightforward for anyone familiar with basic XSS exploitation.

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 – Jun 29, 2026

Stored cross-site scripting in Koha Library Management System's OPAC item detail page enables persistent script injection via the item public notes field (items.itemnotes), affecting all versions through 25.11. An authenticated attacker holding the edit_items permission can plant malicious JavaScript that executes in the browsers of any patron or staff member who subsequently views the affected item's detail page in the OPAC. No public exploit has been identified at time of analysis, and EPSS places exploitation probability at 0.21% (12th percentile), suggesting limited threat actor interest currently.

RemediationAI

No vendor-released patch with an exact fix version has been identified at time of analysis; the referenced vendor URL (http://koha.com) should be monitored for an official security advisory and patch release. As a compensating control, administrators should audit and restrict the edit_items permission to the minimum necessary staff accounts - removing this permission from untrusted or broadly-assigned roles eliminates the attack surface entirely, though it also restricts legitimate item editing workflows. Additionally, a Content Security Policy (CSP) header configured to disallow inline scripts on OPAC pages would prevent injected scripts from executing even if the input is not yet sanitized, though implementing CSP in Koha may require template customization. Input sanitization or output encoding of the items.itemnotes field at the template layer is the definitive fix and should be requested from the Koha development team via the project's bug tracker. See https://lgnas.gitbook.io/findings/cve-2026-50766 for researcher disclosure details.

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) whose OPAC (Online Public Access Catalog) is the public-facing web interface for library patrons to search and browse holdings. The items.itemnotes field stores free-text public notes attached to individual item records and is rendered in the OPAC item detail page. CWE-79 (Improper Neutralization of Input During Web Page Generation) indicates that user-supplied content in this field is not adequately sanitized or escaped before being output in an HTML context. The CVSS vector's S:C (Scope Changed) reflects that the injected script executes in the security context of the victim's browser - a different trust boundary than the Koha application server. CPE data in the source is listed as n/a:n/a, meaning NVD has not yet published a formally matched CPE string for the affected Koha versions; version scope is derived from the description (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 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

PR:L reflects required edit_items permission; UI:R for passive victim page view; S:C because script executes in victim's browser trust boundary; no availability impact.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

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

Lifecycle Timeline

2
CVSS changed
Jun 29, 2026 - 14:22 NVD
5.4 (MEDIUM)
CVE Published
Jun 26, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

A stored cross-site scripting (XSS) vulnerability in the OPAC item detail page of Koha Library Management System through 25.11 allows an authenticated remote attacker with edit_items permission to inject arbitrary web scripts via the item public notes field (items.itemnotes).

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
widely used open-source ILS across public and academic libraries globally
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

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
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