Skip to content

Commit a3be46a

Browse files
1 parent 12ddd68 commit a3be46a

2 files changed

Lines changed: 130 additions & 0 deletions

File tree

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-44jg-mv3h-wj6g",
4+
"modified": "2026-01-15T22:40:42Z",
5+
"published": "2026-01-15T22:40:42Z",
6+
"aliases": [],
7+
"summary": "solspace/craft-freeform Vulnerable to XSS in `PhpSpreadsheet` HTML Writer Due to Unsanitized Styling Data",
8+
"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.",
9+
"severity": [
10+
{
11+
"type": "CVSS_V4",
12+
"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"
13+
}
14+
],
15+
"affected": [
16+
{
17+
"package": {
18+
"ecosystem": "Packagist",
19+
"name": "solspace/craft-freeform"
20+
},
21+
"ranges": [
22+
{
23+
"type": "ECOSYSTEM",
24+
"events": [
25+
{
26+
"introduced": "0"
27+
},
28+
{
29+
"fixed": "4.1.23"
30+
}
31+
]
32+
}
33+
]
34+
}
35+
],
36+
"references": [
37+
{
38+
"type": "WEB",
39+
"url": "https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-wgmf-q9vr-vww6"
40+
},
41+
{
42+
"type": "WEB",
43+
"url": "https://github.com/solspace/craft-freeform/security/advisories/GHSA-44jg-mv3h-wj6g"
44+
},
45+
{
46+
"type": "PACKAGE",
47+
"url": "https://github.com/solspace/craft-freeform"
48+
},
49+
{
50+
"type": "WEB",
51+
"url": "https://github.com/solspace/craft-freeform/releases/tag/v4.1.23"
52+
}
53+
],
54+
"database_specific": {
55+
"cwe_ids": [
56+
"CWE-79"
57+
],
58+
"severity": "LOW",
59+
"github_reviewed": true,
60+
"github_reviewed_at": "2026-01-15T22:40:42Z",
61+
"nvd_published_at": null
62+
}
63+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-rwr8-xrpw-9qf5",
4+
"modified": "2026-01-15T22:41:39Z",
5+
"published": "2026-01-15T22:41:39Z",
6+
"aliases": [],
7+
"summary": "solspace/craft-freeform Exposed to Known Axios Vulnerabilities via Precompiled Assets",
8+
"details": "### Summary\nThe latest versions of both 4.x and 5.x are using Axios versions < 1.7.5 and as such are subject to known vulnerabilities as per: https://security.snyk.io/package/npm/axios\n\n### Details\nWe've had this flagged up in a pen test, which indicates the issue stems from this script: /freeform/plugin.js. I couldn't see any reference to vulnerable axios versions in your package.json files, but noticed some precompiled files in packages/plugin so I'm assuming those are where the issue lies.",
9+
"severity": [],
10+
"affected": [
11+
{
12+
"package": {
13+
"ecosystem": "Packagist",
14+
"name": "solspace/craft-freeform"
15+
},
16+
"ranges": [
17+
{
18+
"type": "ECOSYSTEM",
19+
"events": [
20+
{
21+
"introduced": "0"
22+
},
23+
{
24+
"fixed": "4.1.22"
25+
}
26+
]
27+
}
28+
]
29+
},
30+
{
31+
"package": {
32+
"ecosystem": "Packagist",
33+
"name": "solspace/craft-freeform"
34+
},
35+
"ranges": [
36+
{
37+
"type": "ECOSYSTEM",
38+
"events": [
39+
{
40+
"introduced": "5.0.0-beta.1"
41+
},
42+
{
43+
"fixed": "5.5.9"
44+
}
45+
]
46+
}
47+
]
48+
}
49+
],
50+
"references": [
51+
{
52+
"type": "WEB",
53+
"url": "https://github.com/solspace/craft-freeform/security/advisories/GHSA-rwr8-xrpw-9qf5"
54+
},
55+
{
56+
"type": "PACKAGE",
57+
"url": "https://github.com/solspace/craft-freeform"
58+
}
59+
],
60+
"database_specific": {
61+
"cwe_ids": [],
62+
"severity": "LOW",
63+
"github_reviewed": true,
64+
"github_reviewed_at": "2026-01-15T22:41:39Z",
65+
"nvd_published_at": null
66+
}
67+
}

0 commit comments

Comments
 (0)