Every CVESearch/Get API key

CVE-2026-27621

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

6.8 MediumPublic exploitFix available

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

0.22%Up 0.2 points since Feb 25, 2026
90%50%10%1%

What each source reports

CVE List Score used6.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 MediumCVSS: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-85986.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 MediumCVSS: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-j7wp6.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.php and TypiCMS\Modules\Core\Services\FileUploader.php.
  • Affected Versions: <= 16.0.5

The vulnerability stems from two main points:

  1. Permissive File Validation: The FileFormRequest explicitly whitelists svg as an allowed MIME type for uploads.
  2. 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 <script> 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)

  1. 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.

    <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>
    
  2. 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.

      <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" />

  3. 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.

<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 MediumCVSS: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
NVD6.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 MediumCVSS: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 MediumCVSS: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
OSV6.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 MediumCVSS: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-j7wp6.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.php and TypiCMS\Modules\Core\Services\FileUploader.php.
  • Affected Versions: <= 16.0.5

The vulnerability stems from two main points:

  1. Permissive File Validation: The FileFormRequest explicitly whitelists svg as an allowed MIME type for uploads.
  2. 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 <script> 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)

  1. 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.

    <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>
    
  2. 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.

      <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" />

  3. 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.

<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 MediumCVSS: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

Affected packages
PackageAffectedFixed
typicms/core
Packagist
16.0.0 up to 16.1.7
16.1.7
typicms/core
Packagist
15.0.0 up to 15.0.29
15.0.29
typicms/core
Packagist
14.0.0 up to 14.0.27
14.0.27
typicms/core
Packagist
13.0.0 up to 13.0.9
13.0.9
typicms/core
Packagist
before 12.0.5
12.0.5
typicms/core
Packagist
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 less
16.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/core
Packagist
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 less
15.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/core
Packagist
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 less
14.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/core
Packagist
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/core
Packagist
before 12.0.5, plus listed versions
1.8.01.8.11.8.21.8.31.8.4
Show 45 moreShow less
10.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.

Public exploits
SourceLinkDate
PoC in GitHublukasz-rybak/CVE-2026-276212026-04-11

History

History
RecordedChangedSources
first indexedCVE 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

This page doesn't list everything

Left out here: 426 versions and the rest of 2 source descriptions. The JSON record has them.

MoveEnter Open