CVE-2010-2086: Myfaces core module Cross-Site Scripting Vulnerability
MODERATECVE-2010-2086 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Myfaces core module libraries in the Maven ecosystem. The issue involves apache myfaces cross-site scripting vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2010-2086 at a Glance
How to Fix CVE-2010-2086
To remediate this vulnerability, upgrade all affected Myfaces core module 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.myfaces.core</groupId>
<artifactId>myfaces-core-module</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-core-module</artifactId>
<version>Latest secure release</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.myfaces.core
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2010-2086, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.myfaces.core
Analyze the terminal output to locate any version of Myfaces core module in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.myfaces.core 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 Myfaces core module, 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-2010-2086 Affected Myfaces core module Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.myfaces.core:myfaces-core-module
|
Maven |
≤ 1.1.7
|
|
|
org.apache.myfaces.core:myfaces-core-module
|
Maven |
≥ 1.2.0
≤ 1.2.8
|
|
References
Frequently Asked Questions
What is CVE-2010-2086?
Which Myfaces core module versions are affected?
What version fixes CVE-2010-2086?
Is myfaces-core-module affected?
What CWE is associated with CVE-2010-2086?
How can I check Maven dependencies for CVE-2010-2086?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-92cv-wv2c-8899",
"modified" : "2024-02-08T15:50:25Z",
"published" : "2022-05-17T05:50:42Z",
"aliases" : [ "CVE-2010-2086" ],
"summary" : "Apache MyFaces Cross-site Scripting vulnerability",
"details" : "Apache MyFaces 1.1.7 and 1.2.8 (All previous versions are likely vulnerable), as used in IBM WebSphere Application Server and other applications, does not properly handle an unencrypted view state, which allows remote attackers to conduct cross-site scripting (XSS) attacks or execute arbitrary Expression Language (EL) statements via vectors that involve modifying the serialized view object.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.myfaces.core:myfaces-core-module"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.1.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.myfaces.core:myfaces-core-module"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"last_affected" : "1.2.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-2086"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/myfaces"
}, {
"type" : "WEB",
"url" : "https://www.trustwave.com/spiderlabs/advisories/TWSL2010-001.txt"
}, {
"type" : "WEB",
"url" : "http://www.blackhat.com/presentations/bh-dc-10/Byrne_David/BlackHat-DC-2010-Byrne-SGUI-slides.pdf"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-08T15:50:25Z",
"nvd_published_at" : "2010-05-27T19:00:00Z"
}
}