CVE-2026-27621
TypiCMS Core has Stored Cross-Site Scripting (XSS) via SVG File Upload
TypiCMS is a multilingual content management system based on the Laravel framework. A Stored Cross-Site Scripting (XSS) vulnerability exists in the file upload module of TypiCMS prior to version 16.1.7. 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. Version 16.1.7 of TypiCMS Core fixes the issue.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Active
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used 6.8
TypiCMS Core has Stored Cross-Site Scripting (XSS) via SVG File Upload
TypiCMS is a multilingual content management system based on the Laravel framework. A Stored Cross-Site Scripting (XSS) vulnerability exists in the file upload module of TypiCMS prior to version 16.1.7. 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. Version 16.1.7 of TypiCMS Core fixes the issue.
- Record
CVE-2026-27621- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-79
- Updated
- 2026-11-02
EUVDEUVD-2026-8598 6.8
TypiCMS is a multilingual content management system based on the Laravel framework. A Stored Cross-Site Scripting (XSS) vulnerability exists in the file upload module of TypiCMS prior to version 16.1.7. 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. Version 16.1.7 of TypiCMS Core fixes the issue.
- Record
EUVD-2026-8598- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-xfvg-8v67-j7wp 6.8
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.phpandTypiCMS\Modules\Core\Services\FileUploader.php. - Affected Versions: <= 16.0.5
The vulnerability stems from two main points:
- Permissive File Validation: The
FileFormRequestexplicitly whitelistssvgas an allowed MIME type for uploads. - Lack of Content Sanitization: The
FileUploaderservice saves the SVG file to the server without parsing and sanitizing its content to remove potentially malicious elements like<script>tags oron*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.svgwith the following content. TheviewBoxattribute is included to bypass the application's parsing bug.<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> <script> // A simple PoC to demonstrate the vulnerability alert('XSS in TypiCMS! Your session cookie is: ' + document.cookie); </script> <text x="10" y="50">If you see this, the script has run.</text> </svg>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.svgfile. The application will accept the file and store it.<img width="2540" height="1217" alt="image" src="https://github.com/user-attachments/assets/beb8ace9-ac39-442c-a2bc-3fbfb09f8c32" /> <img width="1718" height="671" alt="image" src="https://github.com/user-attachments/assets/9cd4a3f8-28e3-4223-8203-7ab292eaf95f" />
Trigger the XSS:
- The application will provide a public URL for the uploaded file, typically in the format
http://<your-site>/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.
- The application will provide a public URL for the uploaded file, typically in the format
<img width="2091" height="704" alt="image" src="https://github.com/user-attachments/assets/99c915bb-a518-46aa-b237-390cd58f34e7" /> <img width="1457" height="996" alt="image" src="https://github.com/user-attachments/assets/0ed000ec-78cf-4ed8-8cd5-2886fbb2afc0" />
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…
- Record
GHSA-xfvg-8v67-j7wp- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-79
- Updated
- 2026-11-02
NVD 6.8
TypiCMS is a multilingual content management system based on the Laravel framework. A Stored Cross-Site Scripting (XSS) vulnerability exists in the file upload module of TypiCMS prior to version 16.1.7. 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. Version 16.1.7 of TypiCMS Core fixes the issue.
- Record
CVE-2026-27621- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV 6.8
TypiCMS Core has Stored Cross-Site Scripting (XSS) via SVG File Upload
TypiCMS is a multilingual content management system based on the Laravel framework. A Stored Cross-Site Scripting (XSS) vulnerability exists in the file upload module of TypiCMS prior to version 16.1.7. 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. Version 16.1.7 of TypiCMS Core fixes the issue.
- Record
CVE-2026-27621- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVGHSA-xfvg-8v67-j7wp 6.8
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.phpandTypiCMS\Modules\Core\Services\FileUploader.php. - Affected Versions: <= 16.0.5
The vulnerability stems from two main points:
- Permissive File Validation: The
FileFormRequestexplicitly whitelistssvgas an allowed MIME type for uploads. - Lack of Content Sanitization: The
FileUploaderservice saves the SVG file to the server without parsing and sanitizing its content to remove potentially malicious elements like<script>tags oron*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.svgwith the following content. TheviewBoxattribute is included to bypass the application's parsing bug.<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> <script> // A simple PoC to demonstrate the vulnerability alert('XSS in TypiCMS! Your session cookie is: ' + document.cookie); </script> <text x="10" y="50">If you see this, the script has run.</text> </svg>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.svgfile. The application will accept the file and store it.<img width="2540" height="1217" alt="image" src="https://github.com/user-attachments/assets/beb8ace9-ac39-442c-a2bc-3fbfb09f8c32" /> <img width="1718" height="671" alt="image" src="https://github.com/user-attachments/assets/9cd4a3f8-28e3-4223-8203-7ab292eaf95f" />
Trigger the XSS:
- The application will provide a public URL for the uploaded file, typically in the format
http://<your-site>/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.
- The application will provide a public URL for the uploaded file, typically in the format
<img width="2091" height="704" alt="image" src="https://github.com/user-attachments/assets/99c915bb-a518-46aa-b237-390cd58f34e7" /> <img width="1457" height="996" alt="image" src="https://github.com/user-attachments/assets/0ed000ec-78cf-4ed8-8cd5-2886fbb2afc0" />
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…
- Record
GHSA-xfvg-8v67-j7wp- CVSS 4.0
- 6.8 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-79
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
typicms/corePackagist | 16.0.0 up to 16.1.7 | 16.1.7 |
typicms/corePackagist | 15.0.0 up to 15.0.29 | 15.0.29 |
typicms/corePackagist | 14.0.0 up to 14.0.27 | 14.0.27 |
typicms/corePackagist | 13.0.0 up to 13.0.9 | 13.0.9 |
typicms/corePackagist | before 12.0.5 | 12.0.5 |
typicms/corePackagist | 16.0.0 up to 16.1.7, plus listed versions 16.0.116.0.1016.0.1116.0.1216.0.13 Show 28 moreShow less16.0.1416.0.1516.0.1616.0.1716.0.1816.0.1916.0.216.0.2016.0.2116.0.2216.0.2316.0.2416.0.2516.0.2616.0.316.0.416.0.516.0.616.0.716.0.816.0.916.1.016.1.116.1.216.1.316.1.416.1.516.1.6 | 16.1.7 |
typicms/corePackagist | 15.0.0 up to 15.0.29, plus listed versions 15.0.1015.0.1115.0.1215.0.1315.0.14 Show 21 moreShow less15.0.1515.0.1615.0.1715.0.1815.0.1915.0.215.0.2015.0.2115.0.2215.0.2315.0.2415.0.2515.0.2715.0.2815.0.315.0.415.0.515.0.615.0.715.0.815.0.9 | 15.0.29 |
typicms/corePackagist | 14.0.0 up to 14.0.27, plus listed versions 14.0.114.0.1014.0.1114.0.1214.0.13 Show 21 moreShow less14.0.1414.0.1514.0.1614.0.1714.0.1814.0.1914.0.214.0.2014.0.2114.0.2214.0.2314.0.2414.0.2514.0.2614.0.314.0.414.0.514.0.614.0.714.0.814.0.9 | 14.0.27 |
typicms/corePackagist | 13.0.0 up to 13.0.9, plus listed versions 13.0.113.0.213.0.313.0.413.0.513.0.613.0.713.0.8 | 13.0.9 |
typicms/corePackagist | before 12.0.5, plus listed versions 1.8.01.8.11.8.21.8.31.8.4 Show 45 moreShow less10.0.010.0.110.0.1010.0.1110.0.1210.0.1310.0.1410.0.1510.0.1610.0.1710.0.1810.0.1910.0.210.0.2010.0.2110.0.2210.0.2310.0.2410.0.2510.0.2610.0.2710.0.2810.0.2910.0.310.0.3010.0.3110.0.3210.0.3310.0.3410.0.3510.0.3610.0.3710.0.3810.0.3910.0.410.0.4010.0.4110.0.4210.0.4310.0.4410.0.4510.0.4610.0.4710.0.4810.0.49 | 12.0.5 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | lukasz-rybak/CVE-2026-27621 | 2026-04-11 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-27621 is a medium vulnerability (CVSS 6.8) in Opnsense Core, published February 25, 2026. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.22%, the 13th percentile. Fixed in typicms/core 16.1.7.
References
github.com/TypiCMS/Core/security/advisories/GHSA-xfvg-8v67-j7wp
github.com/TypiCMS/Core/commit/d480a0be1e8e7c0600bb9a325bb11920ee66497d
nvd.nist.gov/vuln/detail/CVE-2026-27621
github.com/advisories/GHSA-xfvg-8v67-j7wp
github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27621.json
github.com/TypiCMS/Core
Left out here: 426 versions and the rest of 2 source descriptions. The JSON record has them.