ZeroHour

CVE-2026-76178

moderate

Stored XSS in OCS Inventory NG ocsreports notification templates

CVSS 4.0
9.2 critical
EPSS
<1%p19
Published
()
Modified
AI analysis

CVE-2026-76178 is a stored Cross-Site Scripting flaw (CWE-79) in the notification template feature of the OCS Inventory NG web console (ocsreports), at the endpoint /ocsreports/?function=notification. An administrator can insert malicious HTML into a notification template; the content is stored and later rendered without sanitisation when other administrators open the template customisation view. The injected JavaScript then executes in the application's security context, allowing an attacker to hijack or compromise the sessions of other administrative users. Only deployments of OCS Inventory NG with administrative access to the console are affected, and exploitation requires both admin-level privileges to inject the payload and interaction from another admin viewing the template. There is currently no public proof-of-concept, the issue is not in CISA's KEV catalog, and EPSS puts 30-day exploitation probability at 0.3% (19th percentile), so no active exploitation is known.

What to do: No fixed version is given in the available data, so check the OCS Inventory project and the INCIBE advisory for the patched release and upgrade as soon as one is published. In the meantime, restrict notification-template editing to trusted administrators, sanitise or limit HTML input in templates, and limit access to the ocsreports console (e.g., management network or VPN only). Because payloads persist and fire on every admin who opens the template view, review administrative accounts and recent sessions for signs of compromise.

Affected
OCS Project OCS Inventory NG (ocsreports web console)
Estimated exposure
moderate≈1,000–10,000 deployed instances (thousands of ocsreports consoles visible in public internet scans, plus uncounted internal-only deployments) — OCS Inventory NG is an open-source IT asset-inventory server usually run on-premises; its distinctive /ocsreports/ path appears in public scans on the order of thousands of exposed instances, while many deployments sit behind firewalls and…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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.

Weakness
CWE-79
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.