{"schemaVersion":3,"id":"CVE-2023-40311","aliases":["GHSA-qfw7-pfxx-h9q2"],"status":"published","duplicateOf":null,"title":"Stored XSS in multiple JSP files in opennms/opennms","description":"Multiple stored XSS were found on different JSP files with unsanitized parameters in OpenMNS Horizon 31.0.8 and versions earlier than 32.0.2 on multiple platforms that allow an attacker to store on database and then load on JSPs or Angular templates. The solution is to upgrade to Meridian 2023.1.6, 2022.1.19, 2021.1.30, 2020.1.38 or Horizon 32.0.2 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 Jordi Miralles Comins for reporting this issue.","dates":{"published":"2023-08-14T17:31:29.877Z","modified":"2024-09-27T21:57:16.869Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.7,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":6.7,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":3.8,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00741,"percentile":0.54108,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00741},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00741,"percentile":0.54108}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00741,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00741,"percentile":0.54108}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"org.opennms","product":"opennms-webapp","name":"org.opennms:opennms-webapp","label":"opennms-webapp","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.opennms/opennms-webapp","purlType":"maven","versions":[{"text":"≥ 31.0.8, < 32.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 31.0.8, < 32.0.2","eol":null,"hubHref":null},{"vendor":"opennms","product":"horizon","name":"horizon","label":"horizon","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 31.0.8, < 32.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 31.0.8, < 32.0.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"horizon","label":"Omnissa Horizon","category":"app"}},"hubHref":"/vendor/opennms/horizon"},{"vendor":"opennms","product":"meridian","name":"meridian","label":"meridian","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2020.1.38","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2022.1.0, < 2022.1.19","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2023.1.0, < 2023.1.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2020.1.38 | ≥ 2022.1.0, < 2022.1.19 | ≥ 2023.1.0, < 2023.1.6","eol":null,"hubHref":"/vendor/opennms/meridian"},{"vendor":"the opennms group","product":"horizon","name":"Horizon","label":"horizon","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 31.0.8, < 32.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 31.0.8, < 32.0.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"horizon","label":"Omnissa Horizon","category":"app"}},"hubHref":"/vendor/the_opennms_group/horizon"},{"vendor":"the opennms group","product":"meridian","name":"Meridian","label":"meridian","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2020.0.0, ≤ 2020.1.37","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2021.0.0, ≤ 2021.1.29","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2022.0.0, ≤ 2022.1.18","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2023.0.0, ≤ 2023.1.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2020.0.0, ≤ 2020.1.37 | ≥ 2021.0.0, ≤ 2021.1.29 | ≥ 2022.0.0, ≤ 2022.1.18 | ≥ 2023.0.0, ≤ 2023.1.5","eol":null,"hubHref":"/vendor/the_opennms_group/meridian"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/OpenNMS/opennms","label":"github.com/OpenNMS/opennms","hostname":"github.com","tags":["PACKAGE","Product"]},{"url":"https://github.com/OpenNMS/opennms/pull/6365","label":"github.com/OpenNMS/opennms/pull/6365","hostname":"github.com","tags":["WEB","Patch","Vendor Advisory"]},{"url":"https://github.com/OpenNMS/opennms/pull/6366","label":"github.com/OpenNMS/opennms/pull/6366","hostname":"github.com","tags":["WEB","Patch","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40311","label":"nvd.nist.gov/vuln/detail/CVE-2023-40311","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/OpenNMS/opennms/commit/6ccc5de1a23d440560e0f09dfd94f8392c21e70d","label":"github.com/OpenNMS/opennms/commit/6ccc5de1a23d440560e0f09dfd94f8392c21e70d","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/OpenNMS/opennms/commit/c67d1cae2fa1fb806c9d422f6e6fbf4ebfde6b60","label":"github.com/OpenNMS/opennms/commit/c67d1cae2fa1fb806c9d422f6e6fbf4ebfde6b60","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-08-14T17:31:29.877Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-27T21:57:16.869Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T17:57:54.134Z","stale":false,"partial":false}}