CVE-2026-2102: XSS in wrensec-commons CREST framework HTTP binding via _mimeType parameter
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
wrensec-commonsto a version that resolves this vulnerability.Fixed in 22.6.2 - Upgrade
Upgrade
wrensec-commonsto a version that resolves this vulnerability.Fixed in 23.0.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Any deployed CREST endpoint using the affected wrensec-commons HTTP binding is potentially exposed, because the attacker can target a CREST endpoint with a crafted URL.
What does an attacker need to exploit it?
The attacker needs to convince a victim to visit a crafted GET URL that supplies _mimeType=text/html. No attacker privileges are required, but user interaction is required.
What is the impact on a victim's browser?
The crafted parameter can make the browser interpret a CREST JSON response as HTML, allowing arbitrary JavaScript to execute in the victim's browser. The stated impact includes low confidentiality and integrity impact, with no availability impact.
Which versions contain the fix?
The issue is fixed in versions 22.6.2 and 23.0.0.