---
id: CVE-2026-22675
title: OCS Inventory NG Server Stored XSS via User-Agent
summary: >-
  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
  /ocsinvento…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-79
vendor: OCS Inventory
product: OCS Inventory NG Server
affected:
  - ng_server <= 2.12.3
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-04-07T13:39:21.858530Z'
published: '2026-04-06'
updated: '2026-11-08'
sourceUpdated: '2026-11-08T14:01:17.846Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-22675'
references:
  - url: 'https://github.com/OCSInventory-NG/OCSInventory-Server/pull/483'
  - url: >-
      https://github.com/OCSInventory-NG/OCSInventory-Server/commit/78faf2ca8b897141ba4d337d75692ab8e405bd4e
  - url: >-
      https://www.vulncheck.com/advisories/ocs-inventory-ng-server-stored-xss-via-user-agent
tags:
  - cve.org
epss: 0.00222
epssPercentile: 0.12833
ingestedAt: '2026-11-08T14:51:22.476Z'
---

## Overview

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

- `ng_server <= 2.12.3`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
