GHSA-vf6x-59hh-332f: Getformwork/formwork Cross-Site Scripting Vulnerability

MODERATE
CVSS 4.7
CWE-80
Published
Advisory Summary

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

CVE Identifier N/A
GHSA Identifier GHSA-vf6x-59hh-332f
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected Product Getformwork/formwork
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

getformwork/formwork fixed: 2.0.0-beta.4
Upgrade getformwork/formwork to 2.0.0-beta.4
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 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

### Summary The 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. ### Impact The attack is widespread, leveraging what XSS can do. This will undoubtedly impact system availability. ### Patches - [**Formwork 2.x** (aa3e9c6)](https://github.com/getformwork/formwork/commit/aa3e9c684035d9e8495169fde7c57d97faa3f9a2) escapes site title from panel header navigation. ### Details By 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.

GHSA-vf6x-59hh-332f Affected Getformwork/formwork Versions

1 component(s)
Fixed Versions:
2.0.0-beta.4
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?
GHSA-vf6x-59hh-332f is a security vulnerability in Getformwork/formwork involving Formwork has a cross-site scripting (XSS) vulnerability in Site title under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS).
Which Getformwork/formwork versions are affected?
Affected versions include releases prior to 2.0.0-beta.4 across affected packages: getformwork/formwork.
What version fixes GHSA-vf6x-59hh-332f?
Upgrading to 2.0.0-beta.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is getformwork/formwork affected?
Yes, getformwork/formwork is affected in releases prior to 2.0.0-beta.4. Upgrade your dependency to 2.0.0-beta.4 or later.
What is the CVSS score of GHSA-vf6x-59hh-332f?
GHSA-vf6x-59hh-332f has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with GHSA-vf6x-59hh-332f?
GHSA-vf6x-59hh-332f is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) (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.).
How can I check Packagist dependencies for GHSA-vf6x-59hh-332f?
Run the dependency tree command: 'inspect dependencies for getformwork/formwork'. 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-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
  }
}