CVE-2026-22675 OCS Inventory NG Server Stored XSS via User-Agent

Medium 5.1 Published Updated

Unauthenticated attackers can inject malicious JavaScript via User-Agent headers, leading to arbitrary code execution in the browsers of authenticated administrators.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-22675?

CVE-2026-22675 is a medium-severity cross-site scripting vulnerability in OCS Inventory NG Server, published on 6 Apr 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2026-22675?

It affects 1 product.

Products include Ocsinventory-Ng Ocs Inventory Server.

How do I fix CVE-2026-22675?

No fix has been published for CVE-2026-22675 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-22675 being exploited?

There is no known exploitation of CVE-2026-22675 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-22675, GHSA-xwcw-3qx7-8hxm, UBUNTU-CVE-2026-22675.

Is CVE-2026-22675 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free