Ocsinventory server: OCS Inventory NG Server version 2.12.3 and prior contain a stored cross-site scripting
Affects ocsinventory-serverSource GCVE Database
Not known to be exploited · CVSS 5.1 Medium.
Data as of 24 Nov 2026, 21:15 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 5.1 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 5.4 |
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 13% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10ocsinventory-serverpkg:deb/ubuntu/ocsinventory-server?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSocsinventory-serverpkg:deb/ubuntu/ocsinventory-server?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSocsinventory-serverpkg:deb/ubuntu/ocsinventory-server?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSocsinventory-serverpkg:deb/ubuntu/ocsinventory-server?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSocsinventory-serverpkg:deb/ubuntu/ocsinventory-server?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Ubuntu 16.04 LTSocsinventory-serverpkg:deb/ubuntu/ocsinventory-server?arch=source&distro=xenialOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-22675 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-22675 (opens in a new tab)
- github.com/OCSInventory-NG/OCSInventory-Server/commit/78faf2ca8b897141ba4d337d75692ab8e405bd4e (opens in a new tab)
- github.com/OCSInventory-NG/OCSInventory-Server/pull/483 (opens in a new tab)
- vulncheck.com/advisories/ocs-inventory-ng-server-stored-xss-via-user-agent (opens in a new tab)