CVE-2026-41921

Koha Stored XSS via Purchase Suggestion Handler

Published Aug 18, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
Koha before 26.05.02, 25.11.07, and 25.05.13 contains a stored cross-site scripting vulnerability in the purchase suggestion handler that allows authenticated staff users to inject malicious scripts by submitting unsanitized input through the suggestion save operation. Attackers can supply crafted HTML or script content in fields such as title, author, isbn, publishercode, place, collectiontitle, itemtype, and note, which are stored without sanitization and later rendered in the suggestion list template, causing injected scripts to execute in the browser of any staff user who views the suggestions.

Analysis

AI-generated

Technical impact

Koha versions prior to 26.05.02, 25.11.07, and 25.05.13 store unsanitized input from the purchase suggestion handler, enabling an authenticated staff user to inject arbitrary HTML or JavaScript. When a staff member later views the suggestion list, the script executes in the user's browser, potentially allowing session hijacking, credential theft, or defacement of the interface. The flaw constitutes a stored XSS vulnerability.

Affected Systems

The affected products are the Koha Community software before releases 26.05.02, 25.11.07, and 25.05.13. All staff accounts with permissions to submit purchase suggestions can exploit the vulnerability.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate severity. The EPSS score is not available, and the flaw is not listed in CISA KEV. Exploitation requires authentication as a staff user with access to the purchase suggestion feature; there is no network‑level attack vector. Once the attacker has credentials, the vulnerability can be abused to run scripts in the browser of any other staff member who views the suggestion list.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a fixed release of Koha (26.05.02, 25.11.07, or 25.05.13) or later.
  • Limit the use of the purchase suggestion feature to trusted staff accounts or disable it entirely if not required.
  • Apply server‑side input validation or sanitization to the suggestion fields, ensuring that any entered HTML is escaped before storage or display.

Generated by OpenCVE AI on August 19, 2026 at 09:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Koha
Koha koha
CPEs cpe:2.3:a:koha:koha:*:*:*:*:*:*:*:*
Vendors & Products Koha
Koha koha
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Koha-community
Koha-community koha
Vendors & Products Koha-community
Koha-community koha
Type Values Removed Values Added
Description Koha before 26.05.02, 25.11.07, and 25.05.13 contains a stored cross-site scripting vulnerability in the purchase suggestion handler that allows authenticated staff users to inject malicious scripts by submitting unsanitized input through the suggestion save operation. Attackers can supply crafted HTML or script content in fields such as title, author, isbn, publishercode, place, collectiontitle, itemtype, and note, which are stored without sanitization and later rendered in the suggestion list template, causing injected scripts to execute in the browser of any staff user who views the suggestions.
Title Koha Stored XSS via Purchase Suggestion Handler
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 1, 2026, 3:20 PM
Reserved
Apr 22, 2026, 6:50 PM
Status
Awaiting Analysis
Published
Aug 18, 2026, 9:16 PM
Modified
Oct 22, 2026, 10:10 PM