CVE-2023-40314: Opennms webapp Cross-Site Scripting Vulnerability
MODERATECVE-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
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).
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.
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-webapp</artifactId>
<version>32.0.5</version>
</dependency>
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
CVE-2023-40314 Affected Opennms webapp Versions
1 component(s)| 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?
Which Opennms webapp versions are affected?
What version fixes CVE-2023-40314?
Is opennms-webapp affected?
What is the CVSS score of CVE-2023-40314?
What CWE is associated with CVE-2023-40314?
How can I check Maven dependencies for CVE-2023-40314?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}