VYPR
Moderate severityNVD Advisory· Published Oct 2, 2019· Updated Aug 5, 2024

CVE-2019-17091

CVE-2019-17091

Description

faces/context/PartialViewContextImpl.java in Eclipse Mojarra, as used in Mojarra for Eclipse EE4J before 2.3.10 and Mojarra JavaServer Faces before 2.2.20, allows Reflected XSS because a client window field is mishandled.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Reflected XSS in Eclipse Mojarra JSF due to improper handling of client window field, allowing script injection in the context of the application.

Vulnerability

Overview

The vulnerability resides in faces/context/PartialViewContextImpl.java of Eclipse Mojarra, the reference implementation of JavaServer Faces (JSF). The bug is a reflected cross-site scripting (XSS) issue caused by improper handling of the client window field. This field, which can be influenced by user input, is not sufficiently sanitized before being included in the page response, allowing an attacker to inject arbitrary JavaScript[1][2].

Exploitation

An attacker can exploit this vulnerability by crafting a malicious URL or form submission that includes a manipulated javax.faces.ClientWindow parameter or similar. The victim needs to be tricked into clicking such a link or visiting a malicious page. No authentication is required, but the victim must be logged into the target application for the injected script to execute in the application's security context[3][4].

Impact

Successful exploitation allows the attacker to execute arbitrary JavaScript in the victim's browser within the context of the JSF application. This can lead to session hijacking, manipulation of application content, redirection to malicious sites, or other attacks performed on behalf of the victim[3].

Mitigation

Eclipse Mojarra has addressed this vulnerability in version 2.3.10 and 2.2.20. Users are advised to upgrade to these or later versions. Workarounds include implementing custom filters or input validation to sanitize client window parameters[2][4].

AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
org.glassfish:javax.facesMaven
< 2.2.202.2.20
org.glassfish:jakarta.facesMaven
< 2.3.102.3.10

Affected products

4

Patches

5
e22ed3cd5373

Prepare release org.glassfish:jakarta.faces:2.3.10

https://github.com/eclipse-ee4j/mojarraEclipse Mojarra BotJul 10, 2019via osv
6 files changed · +6 6
  • api/pom.xml+1 1 modified
    @@ -33,7 +33,7 @@
         <parent>
             <groupId>org.glassfish</groupId>
             <artifactId>mojarra-parent</artifactId>
    -        <version>2.3.10-SNAPSHOT</version>
    +        <version>2.3.10</version>
         </parent>
         
         <groupId>jakarta.faces</groupId>
    
  • impl/pom.xml+1 1 modified
    @@ -34,7 +34,7 @@
         <parent>
             <groupId>org.glassfish</groupId>
             <artifactId>mojarra-parent</artifactId>
    -        <version>2.3.10-SNAPSHOT</version>
    +        <version>2.3.10</version>
         </parent>
         
         <artifactId>jakarta.faces</artifactId>
    
  • jsf-tools/pom.xml+1 1 modified
    @@ -25,7 +25,7 @@
         <parent>
             <groupId>org.glassfish</groupId>
             <artifactId>mojarra-parent</artifactId>
    -        <version>2.3.10-SNAPSHOT</version>
    +        <version>2.3.10</version>
         </parent>
        
         <groupId>com.sun.faces.build</groupId>
    
  • pom.xml+1 1 modified
    @@ -27,7 +27,7 @@
         
         <groupId>org.glassfish</groupId>
         <artifactId>mojarra-parent</artifactId>
    -    <version>2.3.10-SNAPSHOT</version>
    +    <version>2.3.10</version>
         <packaging>pom</packaging>
         
         <name>Mojarra ${project.version} - Project</name>
    
  • test/pom.xml+1 1 modified
    @@ -193,7 +193,7 @@
             <dependency>
                 <groupId>com.sun.faces</groupId>
                 <artifactId>util</artifactId>
    -            <version>2.3.10-SNAPSHOT</version>
    +            <version>2.3.10</version>
                 <scope>test</scope>
             </dependency>
         </dependencies>
    
  • util/pom.xml+1 1 modified
    @@ -24,7 +24,7 @@
         <parent>
             <groupId>org.glassfish</groupId>
             <artifactId>mojarra-parent</artifactId>
    -        <version>2.3.10-SNAPSHOT</version>
    +        <version>2.3.10</version>
         </parent>
         
         <groupId>com.sun.faces</groupId>
    
8f70f2bd024f

Merge pull request #4567 from ruolli/Issue_4556

https://github.com/eclipse-ee4j/mojarraRuolin LiMay 16, 2019via ghsa
1 file changed · +1 1
  • impl/src/main/java/com/sun/faces/context/PartialViewContextImpl.java+1 1 modified
    @@ -511,7 +511,7 @@ private void renderState(FacesContext context) throws IOException {
             if (null != window) {
                 String clientWindowId = Util.getClientWindowId(context);
                 writer.startUpdate(clientWindowId);
    -            writer.write(window.getId());
    +            writer.writeText(window.getId(), null);
                 writer.endUpdate();
             }
         }
    
a3fa9573789e

Fixes #4556 : HIGH-LEVEL VULNERABILITY WITHIN MOJARRA JSF V2.2

1 file changed · +1 1
  • impl/src/main/java/com/sun/faces/context/PartialViewContextImpl.java+1 1 modified
    @@ -511,7 +511,7 @@ private void renderState(FacesContext context) throws IOException {
             if (null != window) {
                 String clientWindowId = Util.getClientWindowId(context);
                 writer.startUpdate(clientWindowId);
    -            writer.write(window.getId());
    +            writer.writeText(window.getId(), null);
                 writer.endUpdate();
             }
         }
    

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

18

News mentions

0

No linked articles in our index yet.