Skip to content
Heist/ feed
Back to feed
Medium

OCS Inventory NG Server Stored XSS via User-Agent

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-22675
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 01:09 UTC · Revision 1

Source evidence

OCS Inventory NG Server Stored XSS via User-Agent

core-osv · Original source

Published 6 Apr 2026, 21:19 UTC

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.

osv:CVE-2026-22675
Complete source record
{
  "id": "06ccf9632078ead272651b84cb9da208018d4a9dbdb486f4bd9aa944e4e158b3",
  "url": "https://osv.dev/vulnerability/CVE-2026-22675",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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 /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.",
    "evidence": "osv:CVE-2026-22675",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-22675",
      "aliases": [
        "CVE-2026-22675"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ocsinventory-ng/ocsinventory-server",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "78faf2ca8b897141ba4d337d75692ab8e405bd4e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "78faf2ca8b897141ba4d337d75692ab8e405bd4e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.8.1",
            "2.8",
            "2.7",
            "2.6",
            "2.6RC",
            "2.5",
            "2.4.1",
            "2.4",
            "2.3.1",
            "2.3",
            "2.3RC1",
            "2.2.1",
            "2.2",
            "2.2RC1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22675.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.493323222Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22675.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-22675",
        "https://www.vulncheck.com/advisories/ocs-inventory-ng-server-stored-xss-via-user-agent",
        "https://github.com/OCSInventory-NG/OCSInventory-Server/pull/483",
        "https://github.com/OCSInventory-NG/OCSInventory-Server/commit/78faf2ca8b897141ba4d337d75692ab8e405bd4e",
        "https://github.com/OCSInventory-NG/OCSInventory-Server"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "VulnCheck",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2.12.3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2.12.3"
                  }
                ],
                "source": "CPE_FIELD",
                "strategy": "CPEApplicability"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2.12.3"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22675.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-22675",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513725,
  "published_at": "2026-04-06T21:19:59.435+00:00"
}