{"answers":{"affected":"2 open source packages ship an affected version, including verbb/formie.","exploited":"There is no known exploitation of CVE-2026-52889 in the wild and no public exploit code.","fix":"Upgrade verbb/formie to 3.1.27 or later.","what":"CVE-2026-52889 is a critical code injection vulnerability in verbb formie, published on 19 Aug 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-52889 and fix it if it is affected.\n\nWhat it is: CVE-2026-52889 is a critical code injection vulnerability in verbb formie, published on 19 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-52889 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- verbb/formie (Packagist): affected all versions; fixed in 3.1.27\n- verbb/formie (Packagist): affected all versions; fixed in 3.1.27\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-52889/ (Markdown: https://insights.sbomify.com/CVE-2026-52889/index.md)","id":"CVE-2026-52889","markdown":"https://insights.sbomify.com/CVE-2026-52889/index.md","name":"CVE-2026-52889","record":{"aliases":["GHSA-565m-g33j-jq96"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution","data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Craft CMS plugin","requires_auth":"none","summary":"Unauthenticated attackers can achieve remote code execution or data disclosure by injecting Twig syntax into Hidden field defaults in Formie.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"Formie is a Craft CMS plugin for creating forms. Prior to 3.1.27, Formie can pass request-derived Hidden field defaults such as HTTP User Agent, Referer URL, Current URL, Current URL without Query String, Query Parameter, and Cookie Value to Craft's Twig rendering layer during front-end form rendering. An unauthenticated attacker can place Twig syntax in one of these request-controlled inputs when a public form contains an affected Hidden field. Hidden::getFrontEndInputOptions() then assigns the value to defaultValue and calls renderString, causing server-side template evaluation rather than treating the request data as a plain string. Depending on the Craft site configuration and available Twig capabilities, exploitation can disclose sensitive information, modify application state, or achieve remote code execution. This issue is fixed in version 3.1.27.","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":"Formie: Server-Side Template Injection in Formie Hidden field defaults","id":"CVE-2026-52889","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Wekan: Arbitrary file read and server DoS via attachment versions.original.path","id":"CVE-2026-52890"},"packages":[{"ecosystem":"Packagist","fixed":["3.1.27"],"introduced":["0"],"last_affected":[],"package":"verbb/formie","purl":null,"source":"GHSA-565m-g33j-jq96"},{"ecosystem":"Packagist","fixed":["3.1.27"],"introduced":["0"],"last_affected":[],"package":"verbb/formie","purl":"pkg:composer/verbb/formie","source":"GHSA-565m-g33j-jq96"}],"prev":{"headline":"NocoBase: Sensitive Data Exposure via SQL Blacklist Bypass","id":"CVE-2026-52888"},"products":["formie"],"published":"2026-08-19","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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-19","vendors":["verbb"]},"summary":"Unauthenticated attackers can achieve remote code execution or data disclosure by injecting Twig syntax into Hidden field defaults in Formie.","url":"https://insights.sbomify.com/CVE-2026-52889/"}