Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-22675 EUVD-2026-19484GHSA-xwcw-3qx7-8hxm

OCS Inventory NG Server Stored XSS via User-Agent

Published Apr 6, 2026 · Updated Nov 8, 2026 · Assigned by VulnCheck

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 products

VendorProductAffectedFixed
OCS Inventory OCS Inventory NG Server ≤ 2.12.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 ocsinventory-server No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 ocsinventory-server No fix yet —
Ubuntu 24.04 LTS ocsinventory-server No fix yet —
Ubuntu 22.04 LTS ocsinventory-server No fix yet —
Ubuntu 20.04 LTS ocsinventory-server No fix yet —
Ubuntu 18.04 LTS ocsinventory-server No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS ocsinventory-server No fix yet —

References