{"answers":{"affected":"2 open source packages ship an affected version, including getformwork/formwork.","exploited":"There is no known exploitation of GHSA-c85w-x26q-ch87 in the wild and no public exploit code.","fix":"Upgrade getformwork/formwork to 2.0.0-beta.4 or later.","what":"GHSA-c85w-x26q-ch87 is a denial of service vulnerability in getformwork/formwork, published on 1 Mar 2025. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-c85w-x26q-ch87 and fix it if it is affected.\n\nWhat it is: GHSA-c85w-x26q-ch87 is a denial of service vulnerability in getformwork/formwork, published on 1 Mar 2025. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-c85w-x26q-ch87 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- getformwork/formwork (Packagist): affected from 2.0.0-beta.1; fixed in 2.0.0-beta.4\n- getformwork/formwork (Packagist): affected from 2.0.0-beta.1; fixed in 2.0.0-beta.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-c85w-x26q-ch87/ (Markdown: https://insights.sbomify.com/GHSA-c85w-x26q-ch87/index.md)","id":"GHSA-c85w-x26q-ch87","markdown":"https://insights.sbomify.com/GHSA-c85w-x26q-ch87/index.md","name":"GHSA-c85w-x26q-ch87","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Formwork CMS","requires_auth":"high_privilege","summary":"Privileged users can crash the Formwork site and admin panel by injecting invalid user role values, causing a denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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.","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Formwork improperly validates input of User role preventing site and panel availability","id":"GHSA-c85w-x26q-ch87","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["2.0.0-beta.4"],"introduced":["2.0.0-beta.1"],"last_affected":[],"package":"getformwork/formwork","purl":null,"source":"GHSA-c85w-x26q-ch87"},{"ecosystem":"Packagist","fixed":["2.0.0-beta.4"],"introduced":["2.0.0-beta.1"],"last_affected":[],"package":"getformwork/formwork","purl":"pkg:composer/getformwork/formwork","source":"GHSA-c85w-x26q-ch87"}],"products":null,"published":"2025-03-01","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Privileged users can crash the Formwork site and admin panel by injecting invalid user role values, causing a denial of service.","url":"https://insights.sbomify.com/GHSA-c85w-x26q-ch87/"}