CVE-2023-40314 Cross-site scripting in bootstrap.jsp

Medium 5.8 Published Updated

Cross-site scripting in bootstrap.jsp allows attackers to steal confidential session information from OpenNMS Horizon and Meridian users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-40314?

CVE-2023-40314 is a medium-severity cross-site scripting vulnerability in Horizon, published on 16 Nov 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

OpenNMS thanks

Moshe Apelbaum

for reporting this issue.

Weakness: CWE-79, CWE-20

Which versions are affected by CVE-2023-40314?

2 open source packages ship an affected version, including org.opennms:opennms-webapp. It affects 2 products.

PackageAffectedFixed in
org.opennms:opennms-webapp MavenAll versions32.0.5
org.opennms:opennms-webapp MavenAll versions32.0.5

Products include Opennms Horizon, Opennms Meridian.

How do I fix CVE-2023-40314?

Upgrade org.opennms:opennms-webapp to 32.0.5 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-40314 being exploited?

There is no known exploitation of CVE-2023-40314 in the wild and no public exploit code.

Sources

Also known as GHSA-c6xw-hg9q-3c9f.

Is CVE-2023-40314 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free