CVE-2024-23819: Gs mapml Cross-Site Scripting Vulnerability
MODERATECVE-2024-23819 is a MODERATE (CVSS 4.8) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Gs mapml libraries in the Maven ecosystem. The issue involves geoserver's mapml html page vulnerable to stored cross-site scripting (xss). Remediation is available by upgrading affected packages to version 2.23.4, 2.24.1.
CVE-2024-23819 at a Glance
Security Impact
CVSS: 4.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2024-23819
To remediate this vulnerability, upgrade all affected Gs mapml 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.geoserver.extension</groupId>
<artifactId>gs-mapml</artifactId>
<version>2.23.4</version>
</dependency>
<dependency>
<groupId>org.geoserver.extension</groupId>
<artifactId>gs-mapml</artifactId>
<version>2.24.1</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.geoserver.extension
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-23819, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.geoserver.extension
Analyze the terminal output to locate any version of Gs mapml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.23.4), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.geoserver.extension 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where 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. In Gs mapml, 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-2024-23819 Affected Gs mapml Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.geoserver.extension:gs-mapml
|
Maven |
< 2.23.4
|
2.23.4
|
|
org.geoserver.extension:gs-mapml
|
Maven |
≥ 2.24.0
< 2.24.1
|
2.24.1
|
References
Frequently Asked Questions
What is CVE-2024-23819?
Which Gs mapml versions are affected?
What version fixes CVE-2024-23819?
Is gs-mapml affected?
What is the CVSS score of CVE-2024-23819?
What CWE is associated with CVE-2024-23819?
How can I check Maven dependencies for CVE-2024-23819?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7x76-57fr-m5r5",
"modified" : "2024-03-20T21:03:47Z",
"published" : "2024-03-20T15:16:53Z",
"aliases" : [ "CVE-2024-23819" ],
"summary" : "GeoServer's MapML HTML Page vulnerable to Stored Cross-Site Scripting (XSS)",
"details" : "### Summary\nA stored cross-site scripting (XSS) vulnerability exists that enables an authenticated administrator with workspace-level privileges to store a JavaScript payload in the GeoServer catalog that will execute in the context of another user's browser when viewed in the MapML HTML Page. The MapML extension must be installed and access to the MapML HTML Page is available to all users although data security may limit users' ability to trigger the XSS.\n\n### Impact\nIf an attacker can control a script that is executed in the victim's browser, then they can typically fully compromise that user. Amongst other things, the attacker can:\n\n1 .Perform any action within the application that the user can perform.\n2. View any information that the user is able to view.\n3. Modify any information that the user is able to modify.\n4. Initiate interactions with other application users, including malicious attacks, that will appear to originate from the initial victim user.\n\n### References\nhttps://osgeo-org.atlassian.net/browse/GEOS-11154\nhttps://github.com/geoserver/geoserver/pull/7175\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geoserver.extension:gs-mapml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.23.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.geoserver.extension:gs-mapml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.24.0"
}, {
"fixed" : "2.24.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/geoserver/geoserver/security/advisories/GHSA-7x76-57fr-m5r5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23819"
}, {
"type" : "WEB",
"url" : "https://github.com/geoserver/geoserver/pull/7175"
}, {
"type" : "WEB",
"url" : "https://github.com/geoserver/geoserver/commit/6f04adbdc6c289f5cb815b1462a6bd790e3fb6ef"
}, {
"type" : "WEB",
"url" : "https://github.com/geoserver/geoserver/commit/df65ff05250cbb498c78af906d66e0c084ace8a1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/geoserver/geoserver"
}, {
"type" : "WEB",
"url" : "https://osgeo-org.atlassian.net/browse/GEOS-11154"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-03-20T15:16:53Z",
"nvd_published_at" : "2024-03-20T18:15:09Z"
}
}