CVE-2026-22675 PUBLISHED

OCS Inventory NG Server Stored XSS via User-Agent

Assigner: VulnCheck
Reserved: 08.01.2026 Published: 06.04.2026 Updated: 07.04.2026

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 sanitation and rendered with insufficient encoding in the web console, leading to arbitrary JavaScript execution in the browsers of authenticated users viewing the statistics dashboard.

Metrics

CVSS Vector: 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
CVSS Score: 5.1

Product Status

Vendor OCS Inventory
Product OCS Inventory NG Server
Versions Default: unaffected
  • affected from 0 to 2.12.3 (incl.)
  • Version 78faf2ca8b897141ba4d337d75692ab8e405bd4e is unaffected

Credits

  • Alexandre Nesic (@_atsika) at Quarkslab finder

References

Problem Types

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE