{"answers":{"affected":"4 open source packages ship an affected version, including getformwork/formwork. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-37160 in the wild and no public exploit code.","fix":"Upgrade getformwork/formwork to a fixed version for your release line: 1.13.1 or 2.0.0-beta.2.","what":"CVE-2024-37160 is a medium-severity cross-site scripting vulnerability in getformwork formwork, published on 7 Jun 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-37160 and fix it if it is affected.\n\nWhat it is: CVE-2024-37160 is a medium-severity cross-site scripting vulnerability in getformwork formwork, published on 7 Jun 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-37160 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- getformwork/formwork (Packagist): affected all versions; fixed in 1.13.1\n- getformwork/formwork (Packagist): affected all versions; fixed in 1.13.1\n- getformwork/formwork (Packagist): affected from 2.0.0-beta.1; fixed in 2.0.0-beta.2\n- getformwork/formwork (Packagist): affected from 2.0.0-beta.1; fixed in 2.0.0-beta.2\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/CVE-2024-37160/ (Markdown: https://insights.sbomify.com/CVE-2024-37160/index.md)","id":"CVE-2024-37160","markdown":"https://insights.sbomify.com/CVE-2024-37160/index.md","name":"CVE-2024-37160","record":{"aliases":["GHSA-5pxr-7m4j-jjc6"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Formwork CMS","requires_auth":"high_privilege","summary":"An administrator can inject persistent XSS via site options, allowing arbitrary script execution for visitors on all pages except the dashboard.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"formwork","vendor":"formwork_project"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Formwork is a flat file-based Content Management System (CMS). An attackers (requires administrator privilege) to execute arbitrary web scripts by modifying site options via /panel/options/site. This type of attack is suitable for persistence, affecting visitors across all pages (except the dashboard). This vulnerability is fixed in 1.13.1.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Formwork has a Cross-site scripting (XSS) vulnerability in Description metadata","id":"CVE-2024-37160","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":4,"n_references":3,"next":{"headline":"MeterSphere front-end editor stores XSS vulnerability","id":"CVE-2024-37161"},"packages":[{"ecosystem":"Packagist","fixed":["1.13.1"],"introduced":["0"],"last_affected":[],"package":"getformwork/formwork","purl":null,"source":"GHSA-5pxr-7m4j-jjc6"},{"ecosystem":"Packagist","fixed":["1.13.1"],"introduced":["0"],"last_affected":[],"package":"getformwork/formwork","purl":"pkg:composer/getformwork/formwork","source":"GHSA-5pxr-7m4j-jjc6"},{"ecosystem":"Packagist","fixed":["2.0.0-beta.2"],"introduced":["2.0.0-beta.1"],"last_affected":[],"package":"getformwork/formwork","purl":null,"source":"GHSA-5pxr-7m4j-jjc6"},{"ecosystem":"Packagist","fixed":["2.0.0-beta.2"],"introduced":["2.0.0-beta.1"],"last_affected":[],"package":"getformwork/formwork","purl":"pkg:composer/getformwork/formwork","source":"GHSA-5pxr-7m4j-jjc6"}],"prev":{"headline":"Evmos is missing create validator check","id":"CVE-2024-37159"},"products":["formwork"],"published":"2024-06-07","related":[{"cvss_score":8.8,"headline":"Formwork Improperly Manages Privileges During User Creation","id":"CVE-2026-27198","kev_date_added":null,"published":"2026-02-21"},{"cvss_score":6.5,"headline":"Formwork CMS Has a Stored Cross-Site Scripting (XSS) Vulnerability in Blog Tags","id":"CVE-2025-65956","kev_date_added":null,"published":"2025-11-25"},{"cvss_score":4.8,"headline":"Formwork Cross-site Scripting (XSS) from Page title field","id":"CVE-2023-24230","kev_date_added":null,"published":"2023-02-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["getformwork"]},"summary":"An administrator can inject persistent XSS via site options, allowing arbitrary script execution for visitors on all pages except the dashboard.","url":"https://insights.sbomify.com/CVE-2024-37160/"}