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

Published Apr 6, 2026
·
Updated

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 Software

1 affected component
Ocsinventory-ng Ocs Inventory Server<=2.12.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Block access to the /ocsinventory endpoint from untrusted networks/hosts (or restrict it to authorized clients) to prevent unauthenticated attackers from submitting malicious User-Agent headers.

Event History

Apr 6, 2026
CVE Published
via MITRE·09:19 PM
Data Sourced
via MITRE·09:19 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-22675?

CVE-2026-22675 has a moderate severity rating due to its potential for stored XSS attacks.

2

How do I fix CVE-2026-22675?

To fix CVE-2026-22675, upgrade to OCS Inventory NG Server version 2.12.4 or later.

3

Who is affected by CVE-2026-22675?

CVE-2026-22675 affects users of OCS Inventory NG Server versions 2.12.3 and prior.

4

What type of vulnerability is CVE-2026-22675?

CVE-2026-22675 is a stored cross-site scripting (XSS) vulnerability.

5

Can attackers exploit CVE-2026-22675 without authentication?

Yes, attackers can exploit CVE-2026-22675 without requiring authentication.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203