CVE-2026-22675

Medium

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.

SeverityMedium
CVSS5.4
Exploit probability—
ProductOcsinventory-ng Ocs Inventory Server
PublishedApr 6, 2026
First seenApr 6, 2026

How to fix

Affected products

ProductAffected versionsFixed in
ocsinventory-ng ocs_inventory_serverv ≤ 2.12.3—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.