Skip to content

CVE-2026-22675 OCS Inventory NG Server Stored XSS via User-Agent

MediumCVSS 5.1 EPSS 0.22%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

5 packages: 2 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/ocsinventory-server(Debian 12) = 2.8.1+dfsg1+~2.11.1-1; = 2.8.1+dfsg1+~2.11.1-2; = 2.8.1+dfsg1+~2.11.1-3; All versions No fix listed No fix yet
ubuntu/ocsinventory-server(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/ocsinventory-server(Ubuntu 24.04) All versions No fix listed No fix yet
ocsinventory-ng ocs inventory server <= 2.12.3 after 2.12.3 Fixed
ocsinventory-ng/ocsinventory-server <= 2.12.3 after 2.12.3 Fixed

Affected products

ProductAffected versionsFixed in
ocsinventory-ng/ocsinventory-server <= 2.12.3 No fix listed
debian/ocsinventory-server(Debian:12) All versions No fix listed
debian/ocsinventory-server(Debian:12) = 2.8.1+dfsg1+~2.11.1-1 No fix listed
debian/ocsinventory-server(Debian:12) = 2.8.1+dfsg1+~2.11.1-2 No fix listed
debian/ocsinventory-server(Debian:12) = 2.8.1+dfsg1+~2.11.1-3 No fix listed
ubuntu/ocsinventory-server(Ubuntu:22.04) All versions No fix listed
ubuntu/ocsinventory-server(Ubuntu:24.04) All versions No fix listed
ocsinventory-ng ocs inventory server <= 2.12.3 No fix listed

References