XSS in Ocs Inventory Ng Server
CVE-2026-22675
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.002, 12.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ocs Inventory Ng Server — versions 0, 78faf2ca8b897141ba4d337d75692ab8e405bd4e
- Ocsinventory-Ng Ocs Inventory Server
Weakness classification (CWE)
References
- github.com/OCSInventory-NG/OCSInventory-Server/pull/483 (issue-tracking, patch, Issue Tracking)
- github.com/OCSInventory-NG/OCSInventory-Server/commit/78faf2ca8b897141ba4d337d7… (Patch, patch)
- www.vulncheck.com/advisories/ocs-inventory-ng-server-stored-xss-via-user-agent (VDB Entry, Third Party Advisory, third-party-advisory)