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

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-04-06T21:19:59.435Z
- Modified: 2026-11-08T14:01:17.846Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- OCS Inventory OCS Inventory NG Server: up to 2.12.3 (not affected: 78faf2ca8b897141ba4d337d75692ab8e405bd4e)
- ocsinventory-ng ocs_inventory_server: up to 2.12.3

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/OCSInventory-NG/OCSInventory-Server/pull/483> (issue-tracking, patch)
- <https://github.com/OCSInventory-NG/OCSInventory-Server/commit/78faf2ca8b897141ba4d337d75692ab8e405bd4e> (patch)
- <https://www.vulncheck.com/advisories/ocs-inventory-ng-server-stored-xss-via-user-agent> (third-party-advisory, vdb-entry)

## Sources

- CVE List: [CVE-2026-22675](https://www.cve.org/CVERecord?id=CVE-2026-22675), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-22675](https://nvd.nist.gov/vuln/detail/CVE-2026-22675), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-22675 · Whole record: https://cve.day/CVE-2026-22675.json · Rebuilt by cve.day 2026-11-25T22:59:18.069Z
