GHSA-44jg-mv3h-wj6g: Solspace/craft freeform Cross-Site Scripting Vulnerability
LOWGHSA-44jg-mv3h-wj6g is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Solspace/craft freeform libraries in the Packagist ecosystem. The issue involves solspace/craft-freeform vulnerable to xss in `phpspreadsheet` html writer due to unsanitized styling data. Remediation is available by upgrading affected packages to version 4.1.23.
GHSA-44jg-mv3h-wj6g at a Glance
How to Fix GHSA-44jg-mv3h-wj6g
To remediate this vulnerability, upgrade all affected Solspace/craft freeform dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade solspace/craft-freeform to 4.1.23
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for solspace/craft-freeform
How to Check if You Are Affected
To determine whether your application is affected by GHSA-44jg-mv3h-wj6g, inspect your project dependencies for Solspace/craft freeform:
inspect dependencies for solspace/craft-freeform
Analyze the terminal output to locate any version of Solspace/craft freeform in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.23), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Solspace/craft freeform, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-44jg-mv3h-wj6g Affected Solspace/craft freeform Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
solspace/craft-freeform
|
Packagist |
< 4.1.23
|
4.1.23
|
References
Frequently Asked Questions
What is GHSA-44jg-mv3h-wj6g?
Which Solspace/craft freeform versions are affected?
What version fixes GHSA-44jg-mv3h-wj6g?
Is solspace/craft-freeform affected?
What CWE is associated with GHSA-44jg-mv3h-wj6g?
How can I check Packagist dependencies for GHSA-44jg-mv3h-wj6g?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-44jg-mv3h-wj6g",
"modified" : "2026-01-15T22:40:42Z",
"published" : "2026-01-15T22:40:42Z",
"aliases" : [ ],
"summary" : "solspace/craft-freeform Vulnerable to XSS in `PhpSpreadsheet` HTML Writer Due to Unsanitized Styling Data",
"details" : "### Summary\n_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._\n\n\\PhpOffice\\PhpSpreadsheet\\Writer\\Html doesn't sanitize spreadsheet styling information such as font names, allowing an attacker to inject arbitrary JavaScript on the page.\n\n### Details\n_Give all details on the vulnerability. Pointing to the incriminated source code is very helpful for the maintainer._\n\nSee https://github.com/advisories/GHSA-wgmf-q9vr-vww6\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\nExample target script:\n\n```\n<?php\n\nrequire 'vendor/autoload.php';\n\n$reader = \\PhpOffice\\PhpSpreadsheet\\IOFactory::createReader(\"Xlsx\");\n$spreadsheet = $reader->load(__DIR__ . '/book.xlsx');\n\n$writer = new \\PhpOffice\\PhpSpreadsheet\\Writer\\Html($spreadsheet);\nprint($writer->generateHTMLAll());\n```\n\nSave this file in the same directory:\n\n[book.xlsx](https://github.com/PHPOffice/PhpSpreadsheet/files/15212797/book.xlsx)\n\nOpen index.php in a web browser. An alert should be displayed.\n\n### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nFull takeover of the session of users viewing spreadsheet files as HTML.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "solspace/craft-freeform"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.23"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-wgmf-q9vr-vww6"
}, {
"type" : "WEB",
"url" : "https://github.com/solspace/craft-freeform/security/advisories/GHSA-44jg-mv3h-wj6g"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/solspace/craft-freeform"
}, {
"type" : "WEB",
"url" : "https://github.com/solspace/craft-freeform/releases/tag/v4.1.23"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-15T22:40:42Z",
"nvd_published_at" : null
}
}