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.