CVE-2007-6726: Struts2 dojo plugin Cross-Site Scripting Vulnerability
MODERATECVE-2007-6726 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Struts2 dojo plugin libraries in the Maven ecosystem. The issue involves apache struts dojo plugin xss vulnerability. Remediation is available by upgrading affected packages to version 0.4.3.
CVE-2007-6726 at a Glance
How to Fix CVE-2007-6726
To remediate this vulnerability, upgrade all affected Struts2 dojo plugin 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.apache.struts</groupId>
<artifactId>struts2-dojo-plugin</artifactId>
<version>0.4.3</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.apache.struts
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2007-6726, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.struts
Analyze the terminal output to locate any version of Struts2 dojo plugin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.3), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.struts 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 Struts2 dojo plugin, 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-2007-6726 Affected Struts2 dojo plugin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.struts:struts2-dojo-plugin
|
Maven |
≥ 0.4.1
< 0.4.3
|
0.4.3
|
References
Frequently Asked Questions
What is CVE-2007-6726?
Which Struts2 dojo plugin versions are affected?
What version fixes CVE-2007-6726?
Is struts2-dojo-plugin affected?
What CWE is associated with CVE-2007-6726?
How can I check Maven dependencies for CVE-2007-6726?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rm26-w253-9qv7",
"modified" : "2023-09-22T21:55:23Z",
"published" : "2022-05-01T18:45:52Z",
"aliases" : [ "CVE-2007-6726" ],
"summary" : "Apache Struts Dojo Plugin XSS Vulnerability",
"details" : "Multiple cross-site scripting (XSS) vulnerabilities in Dojo 0.4.1 and 0.4.2, as used in Apache Struts and other products, allow remote attackers to inject arbitrary web script or HTML via unspecified vectors involving (1) `xip_client.html` and (2) `xip_server.html` in `src/io/`.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.struts:struts2-dojo-plugin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.4.1"
}, {
"fixed" : "0.4.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.4.2"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-6726"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/49884"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/struts-archive/blob/master/plugins/struts2-dojo-plugin"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/struts/browse/WW-2134"
}, {
"type" : "WEB",
"url" : "http://www.dojotoolkit.org/0-4-3-and-updated-0-4-1-0-4-2-builds"
}, {
"type" : "WEB",
"url" : "http://www.dojotoolkit.org/2007/05/26/0-4-3-released-0-4-2-and-0-4-1-users-should-upgrade-immediately"
}, {
"type" : "WEB",
"url" : "http://www.dojotoolkit.org/releaseNotes/0.4.3"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/34660"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-22T21:55:23Z",
"nvd_published_at" : "2009-04-09T15:08:00Z"
}
}