CVE-2026-2102

XSS in wrensec-commons CREST framework HTTP binding via _mimeType parameter

Published Nov 2, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
wrensec-commons contains a reflected cross-site scripting (XSS) vulnerability in the CREST framework's HTTP binding. The HttpUtils.prepareResponse() method used the _mimeType request parameter to set the Content-Type response header without proper sanitization. By sending a GET request with _mimeType=text/html, an attacker could cause the browser to interpret a CREST JSON response as HTML, enabling execution of arbitrary JavaScript in the victim's browser. The vulnerability is exploitable by tricking a user into visiting a crafted URL targeting any deployed CREST endpoint. The issue is fixed in versions 22.6.2 and 23.0.0.

Analysis

AI-generated

Technical impact

The vulnerability in the wrensec-commons CREST framework occurs when the HttpUtils.prepareResponse() method accepts an unvalidated _mimeType request parameter and uses it to set the Content‑Type response header. The lack of sanitization allows an attacker to forge a GET request that specifies _mimeType=text/html, causing the browser to treat a JSON response as HTML and execute attacker‑supplied JavaScript. This reflected XSS can lead to session hijacking, defacement, or other client‑side attacks whenever a victim visits a malicious URL.

Affected Systems

The affected product is Wren Security’s wrensec-commons, in all releases prior to 22.6.2 and 23.0.0. Any deployment of the CREST framework without those specific patches is vulnerable.

Risk and Exploitability

With a CVSS score of 6.1 the vulnerability is considered moderate, though it can be exploited simply by sending a crafted URL to any exposed CREST endpoint. The EPSS score is not available, and the flaw is not listed in CISA’s KEV catalog, but the attack vector is HTTP request, no authentication is required, and the impact is client‑side code execution. Organizations should treat it as a high risk for exposed web services that could affect any user browsing to the affected endpoints.

Remediation

Vendor Workaround

Disallow the _mimeType request parameter in both query string and x-www-form-urlencoded request bodies.


OpenCVE Recommended Actions

  • Upgrade wrensec-commons to version 22.6.2 or newer 23.0.0 where the issue is fixed
  • Reconfigure the framework or your application to reject or sanitize the _mimeType request parameter so it cannot influence the Content‑Type header
  • Apply additional input validation to all request parameters to prevent misuse of headers and reduce the chance of other XSS vectors

Generated by OpenCVE AI on November 2, 2026 at 16:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Wren Security
Wren Security wrensec-commons
Vendors & Products Wren Security
Wren Security wrensec-commons
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description wrensec-commons contains a reflected cross-site scripting (XSS) vulnerability in the CREST framework's HTTP binding. The HttpUtils.prepareResponse() method used the _mimeType request parameter to set the Content-Type response header without proper sanitization. By sending a GET request with _mimeType=text/html, an attacker could cause the browser to interpret a CREST JSON response as HTML, enabling execution of arbitrary JavaScript in the victim's browser. The vulnerability is exploitable by tricking a user into visiting a crafted URL targeting any deployed CREST endpoint. The issue is fixed in versions 22.6.2 and 23.0.0.
Title XSS in wrensec-commons CREST framework HTTP binding via _mimeType parameter
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
WrenSecurity
Published
Updated
Nov 2, 2026, 4:14 PM
Reserved
Feb 6, 2026, 1:04 PM
Status
Deferred
Published
Nov 2, 2026, 4:17 PM
Modified
Nov 2, 2026, 5:17 PM