GHSA-c85w-x26q-ch87: Getformwork/formwork Formwork Improperly Validates Input Of Vulnerability
HIGHGHSA-c85w-x26q-ch87 is a HIGH (CVSS 8.2) formwork improperly validates input of vulnerability (CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input) affecting Getformwork/formwork libraries in the Packagist ecosystem. The issue involves formwork improperly validates input of user role preventing site and panel availability. Remediation is available by upgrading affected packages to version 2.0.0-beta.4.
GHSA-c85w-x26q-ch87 at a Glance
Security Impact
CVSS: 8.2
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:C/C:L/I:L/A:H).
How to Fix GHSA-c85w-x26q-ch87
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-c85w-x26q-ch87, 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-1285: Improper Validation of Specified Index, Position, or Offset in Input, where the product receives input that is expected to specify an index, position, or offset into an indexable resource such as a buffer or file, but it does not validate or incorrectly validates that the specified index/position/offset has the required properties. 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-c85w-x26q-ch87 Affected Getformwork/formwork Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
getformwork/formwork
|
Packagist |
≥ 2.0.0-beta.1
< 2.0.0-beta.4
|
2.0.0-beta.4
|
References
Frequently Asked Questions
What is GHSA-c85w-x26q-ch87?
Which Getformwork/formwork versions are affected?
What version fixes GHSA-c85w-x26q-ch87?
Is getformwork/formwork affected?
What is the CVSS score of GHSA-c85w-x26q-ch87?
What CWE is associated with GHSA-c85w-x26q-ch87?
How can I check Packagist dependencies for GHSA-c85w-x26q-ch87?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c85w-x26q-ch87",
"modified" : "2026-02-18T23:47:37Z",
"published" : "2025-03-01T00:11:52Z",
"aliases" : [ ],
"summary" : "Formwork improperly validates input of User role preventing site and panel availability",
"details" : "### Summary\nImproper validation of select fields allows attackers to craft an input that crashes the system, resulting in a 500 status and making the entire site and administration panel unavailable.\nThis clearly impacts the Availability aspect of the CIA triad (confidentiality, integrity, and availability), although the attack still has certain limitations.\n\n### Details\nThe attack involves injecting any invalid user role value. Doing this will change the users data in a way that prevents users and then the entire site from loading. Even though the actual data change is minimal, the error is unrecoverable until a valid role parameter is restored by direct modification of the user account file.\nProper validation of select fields will prevent extraneous valid from being accepted and making the entire site and administration panel unavailable.\n\n### Patches\n- [**Formwork 2.x** (d9f0c1f)](https://github.com/getformwork/formwork/commit/d9f0c1feb3b9855d5bdc8bb189c0aaab2792e7ca) adds proper validation to select fields.\n\n### Impact\nThe condition for this attack is having high privileges or Admin access, which means it could be exploited by an Insider Threat. Alternatively, if an attacker gains access to a privileged user account, they can execute the attack as well.\nOverall, the attack is relatively difficult to carry out, but if successful, the impact and damage would be significant.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "getformwork/formwork"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0-beta.1"
}, {
"fixed" : "2.0.0-beta.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/getformwork/formwork/security/advisories/GHSA-c85w-x26q-ch87"
}, {
"type" : "WEB",
"url" : "https://github.com/getformwork/formwork/commit/d9f0c1feb3b9855d5bdc8bb189c0aaab2792e7ca"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/getformwork/formwork"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1285", "CWE-248" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-01T00:11:52Z",
"nvd_published_at" : null
}
}