CVE-2026-120421

Reflected XSS via client window id in URL client window mode

Published Nov 4, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
In Eclipse Mojarra versions 2.2.0 through 4.0.28, 4.1.0 through 4.1.19, and 5.0.0-M1 through 5.0.0-M11, when URL client window mode is enabled (`jakarta.faces.CLIENT_WINDOW_MODE=url`), the client window id from the `jfwid` or `jakarta.faces.ClientWindow` request parameter is appended to generated URLs without URL-encoding. `h:button` renders such a URL into a JavaScript string literal, which allows reflected cross-site scripting. With `com.sun.faces.enableCspNonce=true`, the injected script runs on page load inside the nonce script element, bypassing the Content Security Policy.

Analysis

AI-generated

Technical impact

The vulnerability allows an attacker to inject arbitrary JavaScript code that is executed in the victim’s browser when a crafted URL containing a client window identifier is visited. Because the identifier is appended to URLs without URL‑encoding and is rendered inside a JavaScript string literal, the attack propagates directly to the page’s context, enabling defacement, cookie theft or the execution of further malicious actions through the victim’s authentication credentials. The underlying weakness corresponds to CWE‑79, which is reflected XSS that bypasses normal browser defenses.

Affected Systems

Eclipse Mojarra servlet component is affected whenever URL client window mode is enabled (`jakarta.faces.CLIENT_WINDOW_MODE=url`). Versions vulnerable include the 2.2.0 through 4.0.28 series, 4.1.0 through 4.1.19 series, and 5.0.0‑M1 through 5.0.0‑M11 releases. Any JavaServer Faces application that incorporates these releases and uses URL client window mode is at risk.

Risk and Exploitability

With a CVSS score of 6.1, this issue is considered moderate but represents a valid web‑application risk. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting that it has not yet been widely exploited in the wild, yet the impact is still significant. Based on the description, the likely attack vector is an attacker crafting a malicious link containing a forged `jfwid` or `jakarta.faces.ClientWindow` parameter; when a user opens the link the script will run immediately. If the application is also using `com.sun.faces.enableCspNonce=true`, the exploited script executes within the nonce‑protected script element, effectively bypassing restrictive CSL policies and amplifying the potential damage.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Eclipse Mojarra to a release that contains the fixed handling of client window identifiers; the most recent stable releases supersede the vulnerable 2.x through 5.0.0‑M11 series.
  • If an upgrade cannot be performed promptly, disable URL client window mode by removing or setting `jakarta.faces.CLIENT_WINDOW_MODE` to a value other than `url`. This stops the vulnerable URL construction logic from being used.
  • Ensure that any user‑supplied values, particularly client window identifiers, are URL‑encoded before being incorporated into URLs or JavaScript string literals. Add defensive checks to prevent raw identifiers from being reflected in client‑side code.
  • Consider enforcing a stricter Content Security Policy that disallows unsafe inline scripts, and verify that CSP nonces are not automatically re‑entered by the server when rendering URLs.

Generated by OpenCVE AI on November 4, 2026 at 17:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Eclipse
Eclipse eclipse Mojarra
Vendors & Products Eclipse
Eclipse eclipse Mojarra
Type Values Removed Values Added
Description In Eclipse Mojarra versions 2.2.0 through 4.0.28, 4.1.0 through 4.1.19, and 5.0.0-M1 through 5.0.0-M11, when URL client window mode is enabled (`jakarta.faces.CLIENT_WINDOW_MODE=url`), the client window id from the `jfwid` or `jakarta.faces.ClientWindow` request parameter is appended to generated URLs without URL-encoding. `h:button` renders such a URL into a JavaScript string literal, which allows reflected cross-site scripting. With `com.sun.faces.enableCspNonce=true`, the injected script runs on page load inside the nonce script element, bypassing the Content Security Policy.
Title Reflected XSS via client window id in URL client window mode
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
eclipse
Published
Updated
Nov 4, 2026, 8:00 PM
Reserved
Nov 2, 2026, 12:27 PM
Status
Awaiting Analysis
Published
Nov 4, 2026, 3:17 PM
Modified
Nov 12, 2026, 6:43 PM
Severity
Moderate
Public date
Nov 4, 2026, 3:12 PM