CVE-2019-20366: Parent Cross-Site Scripting Vulnerability
MODERATECVE-2019-20366 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Parent libraries in the Maven ecosystem. The issue involves xss in ignite realtime openfire via istruststore. Remediation is available by upgrading affected packages to version 4.5.0.
CVE-2019-20366 at a Glance
How to Fix CVE-2019-20366
To remediate this vulnerability, upgrade all affected Parent 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.igniterealtime.openfire</groupId>
<artifactId>parent</artifactId>
<version>4.5.0</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.igniterealtime.openfire
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2019-20366, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.igniterealtime.openfire
Analyze the terminal output to locate any version of Parent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.igniterealtime.openfire 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 Parent, 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-2019-20366 Affected Parent Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.igniterealtime.openfire:parent
|
Maven |
< 4.5.0
|
4.5.0
|
References
Frequently Asked Questions
What is CVE-2019-20366?
Which Parent versions are affected?
What version fixes CVE-2019-20366?
Is parent affected?
What CWE is associated with CVE-2019-20366?
How can I check Maven dependencies for CVE-2019-20366?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m6pr-xcrm-4qqp",
"modified" : "2023-09-26T20:07:49Z",
"published" : "2022-05-24T22:01:17Z",
"aliases" : [ "CVE-2019-20366" ],
"summary" : "XSS in Ignite Realtime Openfire via isTrustStore",
"details" : "An XSS issue was discovered in Ignite Realtime Openfire 4.4.4 via isTrustStore to Manage Store Contents.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.igniterealtime.openfire:parent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.5.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.4.4"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-20366"
}, {
"type" : "WEB",
"url" : "https://github.com/igniterealtime/Openfire/pull/1561"
}, {
"type" : "WEB",
"url" : "https://github.com/igniterealtime/Openfire/commit/fef55d4be50da8f66f468d9e7d822528acb8273d"
}, {
"type" : "WEB",
"url" : "https://cybersecurityworks.com/zerodays/cve-2019-20366-openfire.html"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/igniterealtime/Openfire"
}, {
"type" : "WEB",
"url" : "https://issues.igniterealtime.org/browse/OF-1955"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-18T23:17:11Z",
"nvd_published_at" : "2020-01-08T17:15:00Z"
}
}