{"answers":{"affected":"2 open source packages ship an affected version, including getgrav/grav-plugin-form.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42845 exists.","fix":"Upgrade getgrav/grav-plugin-form to 9.1.0 or later.","what":"CVE-2026-42845 is a high-severity vulnerability in getgrav grav-plugin-form, published on 11 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-42845 and fix it if it is affected.\n\nWhat it is: CVE-2026-42845 is a high-severity vulnerability in getgrav grav-plugin-form, published on 11 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42845 exists.\n\nAffected packages and fixed versions:\n- getgrav/grav-plugin-form (Packagist): affected all versions; fixed in 9.1.0\n- getgrav/grav-plugin-form (Packagist): affected all versions; fixed in 9.1.0\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-2026-42845/ (Markdown: https://insights.sbomify.com/CVE-2026-42845/index.md)","id":"CVE-2026-42845","markdown":"https://insights.sbomify.com/CVE-2026-42845/index.md","name":"CVE-2026-42845","record":{"aliases":["GHSA-w4rc-p66m-x6qq"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["data_modify","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"Grav form plugin","requires_auth":"none","summary":"An attacker can overwrite page content via file upload in the Grav form plugin, potentially escalating privileges to super-admin.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"description":"The form plugin for Grav adds the ability to create and use forms. Prior to 9.1.0 , there is an unauthenticated page-content overwrite via file upload (GHSA-w4rc-p66m-x6qq). Public form uploads now strip path components from the POST-supplied filename and hard-block page-content extensions (`md`, `yaml`, `yml`, `json`, `twig`, `ini`) regardless of the configurable dangerous-extensions list. A permissive `accept` policy combined with the default `destination: self@` could otherwise let an attacker overwrite the page's own `.md` and pivot to super-admin via a `process: save` action. This vulnerability is fixed in 9.1.0.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Grav: Anonymous Page Content Overwrite via Form File Upload filename Override","id":"CVE-2026-42845","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"file_upload","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"ClipBucket: Remote Play URL Command Injection","id":"CVE-2026-42846"},"packages":[{"ecosystem":"Packagist","fixed":["9.1.0"],"introduced":["0"],"last_affected":[],"package":"getgrav/grav-plugin-form","purl":null,"source":"GHSA-w4rc-p66m-x6qq"},{"ecosystem":"Packagist","fixed":["9.1.0"],"introduced":["0"],"last_affected":[],"package":"getgrav/grav-plugin-form","purl":"pkg:composer/getgrav/grav-plugin-form","source":"GHSA-w4rc-p66m-x6qq"}],"prev":{"headline":"Grav: Low-privileged API users can create super-admin accounts via blueprint-upload","id":"CVE-2026-42844"},"products":["grav-plugin-form"],"published":"2026-05-11","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-12","vendors":["getgrav"]},"summary":"An attacker can overwrite page content via file upload in the Grav form plugin, potentially escalating privileges to super-admin.","url":"https://insights.sbomify.com/CVE-2026-42845/"}