{"id":"CVE-2026-22675","state":"PUBLISHED","title":"OCS Inventory NG Server Stored XSS via User-Agent","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.","publishedAt":"2026-04-06T21:19:59.435Z","updatedAt":"2026-07-14T15:53:27.377Z","severity":{"score":5.1,"label":"Medium","version":"4.0","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","source":"VulnCheck"},"assigner":"VulnCheck","products":["OCS Inventory OCS Inventory NG Server"],"affected":[{"vendor":"OCS Inventory","product":"OCS Inventory NG Server","packageURL":"pkg:github/OCSInventory-NG/OCSInventory-Server","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.12.3","versionType":"semver"},{"version":"78faf2ca8b897141ba4d337d75692ab8e405bd4e","status":"unaffected","versionType":"git"}],"repo":"https://github.com/OCSInventory-NG/OCSInventory-Server"}],"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"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/22xxx/CVE-2026-22675.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-22675","state":"PUBLISHED","datePublished":"2026-04-06T21:19:59.435Z","dateUpdated":"2026-07-14T15:53:27.377Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-01-08T19:04:26.365Z"},"containers":{"cna":{"title":"OCS Inventory NG Server Stored XSS via User-Agent","descriptions":[{"lang":"en","value":"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":[{"vendor":"OCS Inventory","product":"OCS Inventory NG Server","packageURL":"pkg:github/OCSInventory-NG/OCSInventory-Server","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.12.3","versionType":"semver"},{"version":"78faf2ca8b897141ba4d337d75692ab8e405bd4e","status":"unaffected","versionType":"git"}],"repo":"https://github.com/OCSInventory-NG/OCSInventory-Server"}],"references":[{"url":"https://github.com/OCSInventory-NG/OCSInventory-Server/pull/483","tags":["issue-tracking"]},{"url":"https://github.com/OCSInventory-NG/OCSInventory-Server/commit/78faf2ca8b897141ba4d337d75692ab8e405bd4e","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/ocs-inventory-ng-server-stored-xss-via-user-agent","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","subIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":5.1,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseSeverity":"MEDIUM","baseScore":5.4,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-07-14T15:53:27.377Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ocsinventory-ng:ocs_inventory_server:*:*:*:*:*:*:*:*","versionEndIncluding":"2.12.3"}]}]}],"credits":[{"lang":"en","value":"Alexandre Nesic (@_atsika) at Quarkslab","type":"finder"}],"x_generator":{"engine":"Vulnogram 1.0.1"},"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-07T13:39:21.858530Z","id":"CVE-2026-22675","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-07T13:39:31.481Z"}}]}}}