CVE-2026-76178: Multiple vulnerabilities in Ocsreports for OCS Inventory NG
A stored Cross-Site Scripting (XSS) vulnerability in the notification template functionality of the endpoint /ocsreports/?function=notification. A user with administrator privileges can input malicious HTML content which is subsequently stored and displayed without proper sanitisation when other administrators access the template customisation view, allowing JavaScript code to be executed within the application’s security context and potentially compromising the sessions of other users with administrative privileges.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
OCS Inventory NG (ocsreports)to a version that resolves this vulnerability.Fixed in 2.12.6
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated user with administrator privileges can exploit it by entering malicious HTML into a notification template.
Who is exposed to the stored payload?
Other administrators are exposed when they access the notification template customisation view that displays the stored content. The payload can execute JavaScript in the application security context and may compromise their administrative sessions.
How can I determine whether my instance may already be affected?
Review notification templates in the notification functionality for unexpected or untrusted HTML content, particularly content entered by administrator accounts. Check whether administrators have opened the template customisation view after such content was stored.