Vulnerability · Published Apr 6, 2026 · Assigned by VulnCheck
CVE-2026-22675OCS Inventory NG Server Stored XSS via User-Agent
Medium 5.4
In plain English
A medium-severity cross-site scripting in OCS Inventory NG Server from OCS Inventory. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities).
Official description
OCS Inventory NG Server version 2.12.3 and prior contain a stored cross-site scripting vulnerability that allows unauthenticated attackers to execute arbitrary JavaScript by submitting malicious User-Agent HTTP headers to the /ocsinventory endpoint. Attackers can register rogue agents or craft requests with malicious User-Agent values that are stored without sanitization and rendered with insufficient encoding in the web console, leading to arbitrary JavaScript execution in the browsers of authenticated users viewing the statistics dashboard.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ocsinventory-server | no fix listed | DEBIAN-CVE-2026-22675 |
| Ubuntu:22.04:LTS | ocsinventory-server | no fix listed | UBUNTU-CVE-2026-22675 |
| Ubuntu:24.04:LTS | ocsinventory-server | no fix listed | UBUNTU-CVE-2026-22675 |
| Ubuntu:25.10 | ocsinventory-server | no fix listed | UBUNTU-CVE-2026-22675 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| OCS Inventory | OCS Inventory NG Server | 0 – through 2.12.3 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N