CVE-2013-5855: Javax.faces Improper Neutralization Of Input During Vulnerability

MODERATE
Advisory Identifier: GHSA-3m3r-82gc-53mj
CWE-79
Published
Advisory Summary

CVE-2013-5855 is a MODERATE improper neutralization of input during vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Javax.faces libraries in the Maven ecosystem. The issue involves improper neutralization of input during web page generation in mojarra. Remediation is available by upgrading affected packages to version 2.2.6, 2.1.28.

CVE-2013-5855 at a Glance

CVE Identifier CVE-2013-5855
GHSA Identifier GHSA-3m3r-82gc-53mj
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 Javax.faces
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2013-5855

To remediate this vulnerability, upgrade all affected Javax.faces 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.glassfish:javax.faces fixed: 2.2.6
<dependency>
    <groupId>org.glassfish</groupId>
    <artifactId>javax.faces</artifactId>
    <version>2.2.6</version>
</dependency>
org.glassfish:javax.faces fixed: 2.1.28
<dependency>
    <groupId>org.glassfish</groupId>
    <artifactId>javax.faces</artifactId>
    <version>2.1.28</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.glassfish

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2013-5855, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.glassfish

Analyze the terminal output to locate any version of Javax.faces in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.6), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.glassfish 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 Javax.faces, 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

Oracle Mojarra 2.2.x before 2.2.6 and 2.1.x before 2.1.28 does not perform appropriate encoding when a (1) <h:outputText> tag or (2) EL expression is used after a scriptor style block, which allows remote attackers to conduct cross-site scripting (XSS) attacks via application-specific vectors.

CVE-2013-5855 Affected Javax.faces Versions

2 component(s)
Fixed Versions:
2.2.62.1.28
Product / Package Ecosystem Affected Versions Fixed Version
org.glassfish:javax.faces
Maven
≥ 2.2.0
< 2.2.6
2.2.6
org.glassfish:javax.faces
Maven
≥ 2.1.0
< 2.1.28
2.1.28

References

Frequently Asked Questions

What is CVE-2013-5855?
CVE-2013-5855 is a security vulnerability in Javax.faces involving Improper Neutralization of Input During Web Page Generation in Mojarra under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Javax.faces versions are affected?
Affected versions include releases prior to 2.2.6, 2.1.28 across affected packages: org.glassfish:javax.faces.
What version fixes CVE-2013-5855?
Upgrading to 2.2.6, 2.1.28 (or the latest patched release for your respective branch) resolves the vulnerability.
Is javax.faces affected?
Yes, org.glassfish:javax.faces is affected in releases prior to 2.2.6, 2.1.28. Upgrade your dependency to 2.2.6, 2.1.28 or later.
What CWE is associated with CVE-2013-5855?
CVE-2013-5855 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-2013-5855?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.glassfish'. 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-3m3r-82gc-53mj",
  "modified" : "2022-07-07T23:30:20Z",
  "published" : "2022-05-14T02:54:24Z",
  "aliases" : [ "CVE-2013-5855" ],
  "summary" : "Improper Neutralization of Input During Web Page Generation in Mojarra",
  "details" : "Oracle Mojarra 2.2.x before 2.2.6 and 2.1.x before 2.1.28 does not perform appropriate encoding when a (1) <h:outputText> tag or (2) EL expression is used after a scriptor style block, which allows remote attackers to conduct cross-site scripting (XSS) attacks via application-specific vectors.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.glassfish:javax.faces"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.glassfish:javax.faces"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.28"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-5855"
  }, {
    "type" : "WEB",
    "url" : "https://java.net/jira/browse/JAVASERVERFACES-3150"
  }, {
    "type" : "WEB",
    "url" : "https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1258"
  }, {
    "type" : "WEB",
    "url" : "http://h30499.www3.hp.com/t5/HP-Security-Research-Blog/JSF-outputText-tag-the-good-the-bad-and-the-ugly/ba-p/6368011#.U8ccVPlXZHU"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0675.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0720.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0765.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2014/Dec/23"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/cpujan2016-2367955.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/cpujul2014-1972956.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.vmware.com/security/advisories/VMSA-2014-0012.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-07T23:30:20Z",
    "nvd_published_at" : "2014-07-17T05:10:00Z"
  }
}