← Back to CVE Explorer

CVE-2026-2102

Full vulnerability record from the local CVENow database.

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.

Severity
MEDIUM
CVSS score
6.1 (v3.1)
Vulnerability status
Deferred
Source identifier
b6ef82d7-f637-461b-aedd-74f5857d5f5b
Published
2026-11-02 16:17:40.697000
Last modified
2026-11-02 17:17:43.960000
View original CVE JSON
{
  "id": "CVE-2026-2102",
  "sourceIdentifier": "b6ef82d7-f637-461b-aedd-74f5857d5f5b",
  "published": "2026-11-02T16:17:40.697",
  "lastModified": "2026-11-02T17:17:43.960",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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": [
    {
      "source": "b6ef82d7-f637-461b-aedd-74f5857d5f5b",
      "affectedData": [
        {
          "vendor": "Wren Security",
          "product": "wrensec-commons",
          "defaultStatus": "unaffected",
          "collectionURL": "https://repo1.maven.org/maven2",
          "packageName": "org.wrensecurity.commons:json-resource-http",
          "repo": "https://github.com/WrenSecurity/wrensec-commons/",
          "versions": [
            {
              "version": "0",
              "lessThan": "22.6.2",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "23.0.0-M1",
              "lessThan": "23.0.0",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "b6ef82d7-f637-461b-aedd-74f5857d5f5b",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
          "baseScore": 6.1,
          "baseSeverity": "MEDIUM",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "REQUIRED",
          "scope": "CHANGED",
          "confidentialityImpact": "LOW",
          "integrityImpact": "LOW",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 2.8,
        "impactScore": 2.7
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-11-02T16:14:26.559086Z",
          "id": "CVE-2026-2102",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "b6ef82d7-f637-461b-aedd-74f5857d5f5b",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-79"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/WrenSecurity/wrensec-commons/commit/5b50c64c14943b6f4d7faf996345e603956bae1d",
      "source": "b6ef82d7-f637-461b-aedd-74f5857d5f5b"
    },
    {
      "url": "https://github.com/WrenSecurity/wrensec-commons/commit/65bbfd8c63c42e84ff7699aa5b82a22c08a12624",
      "source": "b6ef82d7-f637-461b-aedd-74f5857d5f5b"
    },
    {
      "url": "https://github.com/WrenSecurity/wrensec-commons/security/advisories/GHSA-4vhv-49g2-496q",
      "source": "b6ef82d7-f637-461b-aedd-74f5857d5f5b"
    }
  ]
}