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)

EPSS: 0.002 (12.4th percentile) — read the EPSS interpretation.

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.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-22675?
CVE-2026-22675 is a medium-severity vulnerability in Ocs Inventory Ng Server, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2026-04-06.
How severe is CVE-2026-22675?
Medium severity. CVSS v3 base score is 5.4 out of 10.