CVE-2026-27621

MEDIUMPre-NVD 0.0
0.0
EchelonGraph verdictMonitorLow exploitation likelihood right now — keep watching.
  • No confirmed exploitation signals yet
CISA-KEV: Not listedEPSS: 0%CVSS: Exploit: NoneExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

TypiCMS Core has Stored Cross-Site Scripting (XSS) via SVG File Upload

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 and TypiCMS\Modules\Core\Services\FileUploader.php. * Affected Versions: <= 16.0.5

The vulnerability stems from two main points:

  • Permissive File Validation: The FileFormRequest explicitly whitelists svg as an allowed MIME type for uploads.
  • Lack of Content Sanitization: The FileUploader service saves the SVG file to the server without parsing and sanitizing its content to remove potentially malicious elements like ` tags or on* event handlers.

When the default filesystem disk is set to public, the uploaded SVG file is stored in a publicly accessible directory, making it trivial to access the file via a direct URL and trigger the XSS payload.

III. Proof of Concept (PoC)

  • Create a Malicious SVG File:
Create a file named
malicious.svg with the following content. The viewBox attribute is included to bypass the application's parsing bug.

// A simple PoC to demonstrate the vulnerability
            alert('XSS in TypiCMS! Your session cookie is: ' + document.cookie);
        
        If you see this, the script has run.
  • Upload the Malicious File:
* Log in to the TypiCMS admin panel as a user with permissions to upload files. * Navigate to the "Files" module (e.g.,
/admin/files). * Upload the malicious.svg file. The application will accept the file and store it.
  • Trigger the XSS:
* The application will provide a public URL for the uploaded file, typically in the format
http:///storage/files/malicious.svg. * Anyone who navigates to this URL will have the embedded JavaScript executed in their browser. * An attacker can send this link to a privileged user (e.g., an administrator). When the administrator clicks the link, their session cookies can be stolen, or the attacker can perform actions on their behalf.

IV. Impact

Successful exploitation of this vulnerability allows an attacker to execute arbitrary JavaScript in the context of the victim's browser. Although the use of the HttpOnly flag on session cookies prevents direct theft of the session ID via document.cookie, the attacker can still achieve a full compromise of the victim's account by performing actions on their behalf.

The impact includes:

* Account Takeover via Action Forgery: The attacker's script can make authenticated requests to the application's API from the victim's browser. This allows the attacker to perform any action the victim is authorized to do, such as: * Creating a new administrator account for the attacker. * Changing the victim's email address and password. * Deleting or modifying all content, users, and settings.

* Sensitive Information Disclosure: The script can read the content of any page the victim views within the admin panel. This includes lists of users (with names and emails), private application settings, and other sensitive data, which can then be exfiltrated to an attacker-controlled server.

* Phishing and Social Engineering: The script can manipulate the admin panel's UI to display fake login forms to trick the user into re-entering their credentials, or redirect them to a malicious website.

* Keystroke Logging: The script can capture any information the victim types into forms on the compromised page.

Because the attacker can perform any action as an authenticated administrator, this vulnerability effectively leads to a full application compromise, even without direct access to the session cookie. The risk is High.

V. Recommended Patches and Mitigations

It is recommended to apply a defense-in-depth approach to mitigate this vulnerability.

  • Primary Fix: Sanitize SVG Content:
The most robust solution is to sanitize SVG files upon upload. Before saving the file, it should be parsed to remove all potentially dangerous elements, including , , tags, and all on* event attributes. This can be achieved using a dedicated SVG sanitization library.
  • Secondary Fix: Disable SVG Uploads:
If SVG uploads are not a critical feature for the application, the simplest and most secure solution is to disable them entirely. This can be done by removing
'svg' from the list of allowed MIME types in TypiCMS\Modules\Core\Http\Requests\FileFormRequest.php`.

// In FileFormRequest.php
    // BEFORE:
    $fileRule = 'mimes:jpeg,gif,png,...,svg,...|max:...';

// AFTER: $fileRule = 'mimes:jpeg,gif,png,...,pdf,...|max:...'; // Removed 'svg'

  • Hardening - Content-Security-Policy (CSP):
Implement a strict Content-Security-Policy (CSP) header for the application. A well-configured CSP can prevent the execution of inline scripts, which would mitigate the impact of this XSS vulnerability.
  • Hardening - Serve User Content from a Separate Domain:
Serve all user-uploaded files from a separate, cookie-less domain. This is a highly effective security measure that isolates user-generated content from the main application, preventing scripts from accessing session cookies or interacting with the application's DOM.

CVSS v3
EG Score
0.0(none)
EG Risk
0
EG Risk 0/100

EG Risk is EchelonGraph's 0–100 priority score. It fuses intrinsic severity with real-world exploitation and automatability, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. It is distinct from the 0–10 EG Score, which measures severity.

EPSS
8.6%
KEV
Not listed

Published

February 25, 2026

Last Modified

February 25, 2026

Vendor Advisories for CVE-2026-27621(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Affected Packages

(1 across 1 ecosystem)
Packagist(1)
PackageVulnerable rangeFixed inDependents
typicms/core1.8.0 ... v2.4.9 (476 versions)12.0.5

Data Freshness Timeline

(refreshed 14× in last 7d / 28× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-07-23 14:18 UTCEPSS rescore
  2. 2026-07-23 14:18 UTCEPSS rescore
  3. 2026-07-23 03:08 UTCEG score recompute
  4. 2026-07-22 14:08 UTCEPSS rescore
  5. 2026-07-22 14:08 UTCEPSS rescore
  6. 2026-07-21 15:24 UTCEPSS rescore
  7. 2026-07-21 15:24 UTCEPSS rescore
  8. 2026-07-20 17:08 UTCEPSS rescore
  9. 2026-07-20 17:08 UTCEPSS rescore
  10. 2026-07-19 14:31 UTCEPSS rescore
  11. 2026-07-19 14:31 UTCEPSS rescore
  12. 2026-07-19 02:29 UTCEPSS rescore
  13. 2026-07-18 10:04 UTCEPSS rescore
  14. 2026-07-18 10:04 UTCEPSS rescore
  15. 2026-07-16 17:03 UTCEPSS rescore
  16. 2026-07-16 17:03 UTCEPSS rescore
  17. 2026-07-15 16:57 UTCEPSS rescore
  18. 2026-07-15 16:57 UTCEPSS rescore
  19. 2026-07-15 02:00 UTCEPSS rescore
  20. 2026-07-15 02:00 UTCEPSS rescore
  21. 2026-07-13 22:30 UTCEPSS rescore
  22. 2026-07-13 06:13 UTCEPSS rescore
  23. 2026-07-13 06:13 UTCEPSS rescore
  24. 2026-07-12 05:46 UTCEPSS rescore
  25. 2026-07-11 08:27 UTCEPSS rescore
Show 3 more
  1. 2026-07-09 19:10 UTCEPSS rescore
  2. 2026-07-09 17:46 UTCEG score recompute
  3. 2026-07-09 17:45 UTCOSV refresh

Frequently asked(4)

What is CVE-2026-27621?
CVE-2026-27621 is a medium vulnerability published on February 25, 2026. TypiCMS Core has Stored Cross-Site Scripting (XSS) via SVG File Upload 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…
When was CVE-2026-27621 disclosed?
CVE-2026-27621 was first published in the National Vulnerability Database on February 25, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-27621 actively exploited?
CVE-2026-27621 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 8.6% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
How do I remediate CVE-2026-27621?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-27621, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-27621

Explore →

Is Your Infrastructure Affected by CVE-2026-27621?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.