GHSA-vf6x-59hh-332f: Getformwork/formwork Cross-Site Scripting Vulnerability
MODERATEGHSA-vf6x-59hh-332f is a MODERATE (CVSS 4.7) cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Getformwork/formwork libraries in the Packagist ecosystem. The issue involves formwork has a cross-site scripting (xss) vulnerability in site title. Remediation is available by upgrading affected packages to version 2.0.0-beta.4.
GHSA-vf6x-59hh-332f at a Glance
Security Impact
CVSS: 4.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L).
How to Fix GHSA-vf6x-59hh-332f
To remediate this vulnerability, upgrade all affected Getformwork/formwork 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 getformwork/formwork to 2.0.0-beta.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for getformwork/formwork
How to Check if You Are Affected
To determine whether your application is affected by GHSA-vf6x-59hh-332f, inspect your project dependencies for Getformwork/formwork:
inspect dependencies for getformwork/formwork
Analyze the terminal output to locate any version of Getformwork/formwork in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0-beta.4), 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-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Getformwork/formwork, 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-vf6x-59hh-332f Affected Getformwork/formwork Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
getformwork/formwork
|
Packagist |
≥ 2.0.0-beta.3
< 2.0.0-beta.4
All 1 versions
2.0.0-beta.3
|
2.0.0-beta.4
|
References
Frequently Asked Questions
What is GHSA-vf6x-59hh-332f?
Which Getformwork/formwork versions are affected?
What version fixes GHSA-vf6x-59hh-332f?
Is getformwork/formwork affected?
What is the CVSS score of GHSA-vf6x-59hh-332f?
What CWE is associated with GHSA-vf6x-59hh-332f?
How can I check Packagist dependencies for GHSA-vf6x-59hh-332f?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vf6x-59hh-332f",
"modified" : "2026-02-18T23:47:22Z",
"published" : "2025-03-01T00:11:46Z",
"aliases" : [ ],
"summary" : " Formwork has a cross-site scripting (XSS) vulnerability in Site title",
"details" : "### Summary\n\nThe site title field at /panel/options/site/allows embedding JS tags, which can be used to attack all members of the system. This is a widespread attack and can cause significant damage if there is a considerable number of users.\n\n### Impact\n\nThe attack is widespread, leveraging what XSS can do. This will undoubtedly impact system availability.\n\n### Patches\n- [**Formwork 2.x** (aa3e9c6)](https://github.com/getformwork/formwork/commit/aa3e9c684035d9e8495169fde7c57d97faa3f9a2) escapes site title from panel header navigation.\n\n### Details\n\nBy embedding \"<!--\", the source code can be rendered non-functional, significantly impacting system availability. However, the attacker would need admin privileges, making the attack more difficult to execute.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "getformwork/formwork"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0-beta.3"
}, {
"fixed" : "2.0.0-beta.4"
} ]
} ],
"versions" : [ "2.0.0-beta.3" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/getformwork/formwork/security/advisories/GHSA-vf6x-59hh-332f"
}, {
"type" : "WEB",
"url" : "https://github.com/getformwork/formwork/commit/aa3e9c684035d9e8495169fde7c57d97faa3f9a2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/getformwork/formwork"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-80" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-01T00:11:46Z",
"nvd_published_at" : null
}
}