CVE-2010-2086: Myfaces core module Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-92cv-wv2c-8899
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2010-2086
GHSA Identifier GHSA-92cv-wv2c-8899
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Myfaces core module
Package Ecosystem Maven
Published Date
Last Updated

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.

org.apache.myfaces.core:myfaces-core-module fixed: Latest secure release
<dependency>
    <groupId>org.apache.myfaces.core</groupId>
    <artifactId>myfaces-core-module</artifactId>
    <version>Latest secure release</version>
</dependency>
org.apache.myfaces.core:myfaces-core-module fixed: Latest secure release
<dependency>
    <groupId>org.apache.myfaces.core</groupId>
    <artifactId>myfaces-core-module</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2010-2086 is a security vulnerability in Myfaces core module involving Apache MyFaces Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Myfaces core module versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.apache.myfaces.core:myfaces-core-module.
What version fixes CVE-2010-2086?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is myfaces-core-module affected?
Yes, org.apache.myfaces.core:myfaces-core-module is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2010-2086?
CVE-2010-2086 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Maven dependencies for CVE-2010-2086?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.myfaces.core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}