CVE-2026-2102
XSS in wrensec-commons CREST framework HTTP binding via _mimeType parameter
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.wrensecurity.commons » json-resource-httppreliminary | < 22.6.2>= 23.0.0-M1, < 23.0.0 | 22.6.2, 23.0.0 |
Blast radius
55% of the dependent artifacts (66) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 283 |
| 2 hops | 1,002 |
| 3 hops | 420 |
| 4 hops | 203 |
Most used dependents
- org.wrensecurity.wrenam » openam-core29 usages
- org.wrensecurity.wrenam » openam-shared29 usages
- org.wrensecurity.wrenidm » openidm-enhanced-config22 usages
- org.wrensecurity.wrenam » openam-rest13 usages
- org.wrensecurity.wrenidm » openidm-util12 usages
- org.wrensecurity.wrenam » openam-federation-library10 usages
- org.wrensecurity.wrenidm » openidm-router9 usages
- org.wrensecurity.wrenam » openam-test-utils8 usages
- org.wrensecurity.wrenam » openam-client-sts7 usages
- org.wrensecurity.wrenam » openam-entitlements7 usages
- org.wrensecurity.wrends » opendj-server-legacy7 usages
- org.wrensecurity.wrenam » openam-slf4j6 usages
- org.wrensecurity.wrenam » OpenFM6 usages
- org.wrensecurity.wrenam » openam-audit-core6 usages
- org.wrensecurity.wrenidm » openidm-core6 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/WrenSecurity/wrensec-commons/
- Webhttps://repo1.maven.org/maven2
- Advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2026/2xxx/CVE-2026-2102.json
- Advisoryhttps://github.com/WrenSecurity/wrensec-commons/security/advisories/GHSA-4vhv-49g2-496q
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-2102
- Fixhttps://github.com/WrenSecurity/wrensec-commons/commit/5b50c64c14943b6f4d7faf996345e603956bae1d
- Fixhttps://github.com/WrenSecurity/wrensec-commons/commit/65bbfd8c63c42e84ff7699aa5b82a22c08a12624
