5.1medium
OCS Inventory NG Server Stored XSS via User-Agent
- Severity
- 5.1medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.28% (higher than 22% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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
| Product or package | Versions | Reported by |
|---|---|---|
| OCS Inventory OCS Inventory NG Server | up to 2.12.3 Not affected: 78faf2ca8b897141ba4d337d75692ab8e405bd4e | CVE List |
| ocsinventory-ng ocs_inventory_server | up to 2.12.3 | NVD |
All scores
| VulnCheck | 5.1medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| VulnCheck | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
OCS Inventory NG Server versión 2.12.3 y anteriores contienen una vulnerabilidad de cross-site scripting almacenado que permite a atacantes no autenticados ejecutar JavaScript arbitrario al enviar encabezados HTTP User-Agent maliciosos al endpoint /ocsinventory. Los atacantes pueden registrar agentes maliciosos o crear solicitudes con valores de User-Agent maliciosos que se almacenan sin saneamiento y se renderizan con codificación insuficiente en la consola web, lo que lleva a la ejecución arbitraria de JavaScript en los navegadores de los usuarios autenticados que ven el panel de estadísticas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-22675 changed 2026-11-08 | CVE Terms of Use |
| NVD | CVE-2026-22675 changed 2026-07-24 | Public domain |