Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. typicms/core
  4. ›
  5. CVE-2026-27621

CVE-2026-27621: TypiCMS Core has Stored Cross-Site Scripting (XSS) via SVG File Upload

February 25, 2026

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.

References

  • github.com/TypiCMS/Core
  • github.com/TypiCMS/Core/commit/d480a0be1e8e7c0600bb9a325bb11920ee66497d
  • github.com/TypiCMS/Core/security/advisories/GHSA-xfvg-8v67-j7wp
  • github.com/advisories/GHSA-xfvg-8v67-j7wp
  • nvd.nist.gov/vuln/detail/CVE-2026-27621

Code Behaviors & Features

Detect and mitigate CVE-2026-27621 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 16.1.7

Fixed versions

  • 16.1.7

Solution

Upgrade to version 16.1.7 or above.

Impact 5.7 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/typicms/core/CVE-2026-27621.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 26 Feb 2026 00:17:11 +0000.