p PatchFirst

CVE-2026-22675

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.1 · Medium · EPSS 0.2%

Published
Updated

Stack: system

Affected products and versions

  • ocs inventory ng server

    Versions
    • ≥ 0, ≤ 2.12.3: Affected (semver)
    • 78faf2ca8b897141ba4d337d75692ab8e405bd4e: Not affected (git)

    No fix published

  • ocsinventory-server Debian:12

    Versions
    • 2.8.1+dfsg1+~2.11.1-1
    • 2.8.1+dfsg1+~2.11.1-2
    • 2.8.1+dfsg1+~2.11.1-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ocsinventory-server Ubuntu:16.04:LTS

    Versions
    • 2.1.2-1
    • 2.1.2-1ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ocsinventory-server Ubuntu:18.04:LTS

    Versions
    • 2.2+dfsg-0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ocsinventory-server Ubuntu:20.04:LTS

    Versions
    • 2.5+dfsg1-1
    • 2.5+dfsg1-1ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ocsinventory-server Ubuntu:22.04:LTS

    Versions
    • 2.8.1+dfsg1-1
    • 2.8.1+dfsg1-1ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ocsinventory-server Ubuntu:24.04:LTS

    Versions
    • 2.8.1+dfsg1+~2.11.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ocsinventory-server Ubuntu:25.10

    Versions
    • 2.8.1+dfsg1+~2.11.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →