GHSA-44jg-mv3h-wj6g: Solspace/craft freeform Cross-Site Scripting Vulnerability

LOW
CWE-79
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-44jg-mv3h-wj6g
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Solspace/craft freeform
Package Ecosystem Packagist
Published Date
Last Updated

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.

solspace/craft-freeform fixed: 4.1.23
Upgrade solspace/craft-freeform to 4.1.23
Verify Direct and Transitive Dependencies

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

### 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: [book.xlsx](https://github.com/PHPOffice/PhpSpreadsheet/files/15212797/book.xlsx) 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.

GHSA-44jg-mv3h-wj6g Affected Solspace/craft freeform Versions

1 component(s)
Fixed Versions:
4.1.23
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?
GHSA-44jg-mv3h-wj6g is a security vulnerability in Solspace/craft freeform involving solspace/craft-freeform Vulnerable to XSS in `PhpSpreadsheet` HTML Writer Due to Unsanitized Styling Data under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Solspace/craft freeform versions are affected?
Affected versions include releases prior to 4.1.23 across affected packages: solspace/craft-freeform.
What version fixes GHSA-44jg-mv3h-wj6g?
Upgrading to 4.1.23 (or the latest patched release for your respective branch) resolves the vulnerability.
Is solspace/craft-freeform affected?
Yes, solspace/craft-freeform is affected in releases prior to 4.1.23. Upgrade your dependency to 4.1.23 or later.
What CWE is associated with GHSA-44jg-mv3h-wj6g?
GHSA-44jg-mv3h-wj6g is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Packagist dependencies for GHSA-44jg-mv3h-wj6g?
Run the dependency tree command: 'inspect dependencies for solspace/craft-freeform'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}