CVE-2023-40314: Opennms webapp Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-c6xw-hg9q-3c9f
CVSS 5.8
CWE-20 CWE-79
Published
Advisory Summary

CVE-2023-40314 is a MODERATE (CVSS 5.8) cross-site scripting vulnerability (CWE-20: Improper Input Validation) affecting Opennms webapp libraries in the Maven ecosystem. The issue involves opennms cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 32.0.5.

CVE-2023-40314 at a Glance

CVE Identifier CVE-2023-40314
GHSA Identifier GHSA-c6xw-hg9q-3c9f
Severity MODERATE
CVSS v3.1 Base Score 5.8
CWE Classification CWE-20: Improper Input Validation
Affected Product Opennms webapp
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-40314

To remediate this vulnerability, upgrade all affected Opennms webapp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.opennms:opennms-webapp fixed: 32.0.5
<dependency>
    <groupId>org.opennms</groupId>
    <artifactId>opennms-webapp</artifactId>
    <version>32.0.5</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.opennms

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-40314, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.opennms

Analyze the terminal output to locate any version of Opennms webapp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 32.0.5), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.opennms command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Opennms webapp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Cross-site scripting in bootstrap.jsp in multiple versions of OpenNMS Meridian and Horizon allows an attacker access to confidential session information. The solution is to upgrade to Horizon 32.0.5 or newer and Meridian 2023.1.9 or newer. Meridian and Horizon installation instructions state that they are intended for installation within an organization's private networks and should not be directly accessible from the Internet.

CVE-2023-40314 Affected Opennms webapp Versions

1 component(s)
Fixed Versions:
32.0.5
Product / Package Ecosystem Affected Versions Fixed Version
org.opennms:opennms-webapp
Maven
< 32.0.5
32.0.5

References

Frequently Asked Questions

What is CVE-2023-40314?
CVE-2023-40314 is a security vulnerability in Opennms webapp involving OpenNMS Cross-site Scripting vulnerability under CWE-20: Improper Input Validation.
Which Opennms webapp versions are affected?
Affected versions include releases prior to 32.0.5 across affected packages: org.opennms:opennms-webapp.
What version fixes CVE-2023-40314?
Upgrading to 32.0.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is opennms-webapp affected?
Yes, org.opennms:opennms-webapp is affected in releases prior to 32.0.5. Upgrade your dependency to 32.0.5 or later.
What is the CVSS score of CVE-2023-40314?
CVE-2023-40314 has a CVSS v3.1 base score of 5.8 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2023-40314?
CVE-2023-40314 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2023-40314?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.opennms'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c6xw-hg9q-3c9f",
  "modified" : "2023-11-27T23:21:45Z",
  "published" : "2023-11-17T00:31:06Z",
  "aliases" : [ "CVE-2023-40314" ],
  "summary" : "OpenNMS Cross-site Scripting vulnerability",
  "details" : "Cross-site scripting in bootstrap.jsp in multiple versions of OpenNMS Meridian and Horizon allows an attacker access to confidential session information. The solution is to upgrade to Horizon 32.0.5 or newer and Meridian 2023.1.9 or newer.\n\nMeridian and Horizon installation instructions state that they are intended for installation within an organization's private networks and should not be directly accessible from the Internet.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.opennms:opennms-webapp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "32.0.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-40314"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenNMS/opennms/pull/6791"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OpenNMS/opennms"
  }, {
    "type" : "WEB",
    "url" : "https://opennms.atlassian.net/browse/NMS-15790"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-27T23:21:45Z",
    "nvd_published_at" : "2023-11-16T22:15:27Z"
  }
}