CVE-2026-22675OCS Inventory NG Server Stored XSS via User-Agent
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.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | ocsinventory-server | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-22675 | |
| Ubuntu 24.04 | ocsinventory-server | Under investigation | UBUNTU-CVE-2026-22675 | |
| Ubuntu 22.04 | ocsinventory-server | Under investigation | UBUNTU-CVE-2026-22675 | |
| Ubuntu 20.04 | ocsinventory-server | Fix pending | UBUNTU-CVE-2026-22675 | |
| Ubuntu 18.04 | ocsinventory-server | Fix pending | UBUNTU-CVE-2026-22675 | |
| Ubuntu 16.04 | ocsinventory-server | Fix pending | UBUNTU-CVE-2026-22675 | |
| Debian 12 | ocsinventory-server | Fix pending | DEBIAN-CVE-2026-22675 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OCS Inventory NG Server: affected: up to 2.12.3, 78faf2ca8b897141ba4d337d75692ab8e405bd4e not affected
Vendor advisories:
- https://github.com/OCSInventory-NG/OCSInventory-Server/pull/483 (patch)
- https://github.com/OCSInventory-NG/OCSInventory-Server/commit/78faf2ca8b897141ba4d337d756… (patch)
References
- https://github.com/OCSInventory-NG/OCSInventory-Server/pull/483
- https://github.com/OCSInventory-NG/OCSInventory-Server/commit/78faf2ca8b897141ba4d337d75692ab8e405bd4e
- https://www.vulncheck.com/advisories/ocs-inventory-ng-server-stored-xss-via-user-agent
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.