Medium, CVSS 6.8PackagistPublished
TypiCMS Core has Stored Cross-Site Scripting (XSS) via SVG File Upload
CVE-2026-27621 · GHSA-xfvg-8v67-j7wp
- Affected
- Packagist typicms/core >= 16.0.0, < 16.1.7; >= 15.0.0, < 15.0.29; >= 14.0.0, < 14.0.27; >= 13.0.0, < 13.0.9; < 12.0.5
- Fixed in
- 14.0.2713.0.916.1.712.0.515.0.29· Vendor fix available
- Issue
- I. Summary A Stored Cross-Site Scripting (XSS) vulnerability exists in the file upload module of TypiCMS. The application allows users with file upload permissions to upload SVG files. While there is a MIME type validation, the content of the SVG file is not sanitized. An attacker can upload a specially crafted SVG file containing malicious JavaScript code. When another user (such as an administrator) views or accesses this file through the application, the script executes in their browser, leading to a compromise of that user's session. The issue is exacerbated by a bug in the SVG parsing logic, which can cause a 500 error if the uploaded SVG does not contain a viewBox attribute. However, this does not mitigate the XSS vulnerability, as an attacker can easily include a valid viewBox attribute in their malicious payload. II. Vulnerability Details Vulnerability Type: Stored Cross-Site Scripting (XSS) (CWE-79) Affected Component: TypiCMS\Modules\Core\Http\Requests\FileFormRequest.php…
Recommended action: Upgrade to 16.1.7, 15.0.29, 14.0.27 or 2 more by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.