GHSA-44jg-mv3h-wj6g: solspace/craft-freeform Vulnerable to XSS in `PhpSpreadsheet` HTML Writer Due to Unsanitized Styling Data
Summary Short summary of the problem. Make the impact and severity as clear as possible. For example: An unsafe deserialization vulnerability allows any unauthenticated user to execute arbitrary code on the server. \PhpOffice\PhpSpreadsheet\Writer\Html doesn't sanitize spreadsheet styling information such as font names, allowing an attacker to inject arbitrary JavaScript on the page.
Published Jan 15, 2026
Affected packages
solspace/craft-freeform
- Ecosystem
- Composer (PHP)
- Affected
- < 4.1.23
- Fixed in
- 4.1.23
- Check
composer show solspace/craft-freeform
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
_Short summary of the problem. Make the impact and severity as clear as possible. For example: An unsafe deserialization vulnerability allows any unauthenticated user to execute arbitrary code on the server._
\PhpOffice\PhpSpreadsheet\Writer\Html doesn't sanitize spreadsheet styling information such as font names, allowing an attacker to inject arbitrary JavaScript on the page.
Details
_Give all details on the vulnerability. Pointing to the incriminated source code is very helpful for the maintainer._
See https://github.com/advisories/GHSA-wgmf-q9vr-vww6
PoC
_Complete instructions, including specific configuration details, to reproduce the vulnerability._
Example target script:
<?php
require 'vendor/autoload.php';
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader("Xlsx");
$spreadsheet = $reader->load(__DIR__ . '/book.xlsx');
$writer = new \PhpOffice\PhpSpreadsheet\Writer\Html($spreadsheet);
print($writer->generateHTMLAll());Save this file in the same directory:
Open index.php in a web browser. An alert should be displayed.
Impact
_What kind of vulnerability is it? Who is impacted?_
Full takeover of the session of users viewing spreadsheet files as HTML.
Credited to riekusdn.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-73858
Solspace Freeform: Limited Twig template injection via submitted field values
medium5.3Sep 23, 2026CVE-2026-26188
Freeform Craft Plugin CP UI (builder/integrations) has Stored Cross-Site Scripting (XSS) issue
low2.1Jan 22, 2026GHSA-58q2-9x27-h2jm
solspace/craft-freeform Has a DoS Vulnerability
low2.7Jan 15, 2026GHSA-rwr8-xrpw-9qf5
solspace/craft-freeform Exposed to Known Axios Vulnerabilities via Precompiled Assets
lowJan 15, 2026CVE-2025-52122
The Freeform CraftCMS plugin contains an Server-side template injection (SSTI) vulnerability
critical9.8Aug 27, 2025
