{"answers":{"affected":"2 open source packages ship an affected version, including handlebars.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-106445 exists.","fix":"Upgrade handlebars to 4.7.10 or later.","what":"CVE-2026-106445 is a critical code injection vulnerability in handlebars-lang handlebars.js, published on 6 Oct 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-106445 and fix it if it is affected.\n\nWhat it is: CVE-2026-106445 is a critical code injection vulnerability in handlebars-lang handlebars.js, published on 6 Oct 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-106445 exists.\n\nAffected packages and fixed versions:\n- handlebars (npm): affected from 3.0.0; fixed in 4.7.10\n- handlebars (npm): affected from 3.0.0; fixed in 4.7.10\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-106445/ (Markdown: https://insights.sbomify.com/CVE-2026-106445/index.md)","id":"CVE-2026-106445","markdown":"https://insights.sbomify.com/CVE-2026-106445/index.md","name":"CVE-2026-106445","record":{"aliases":["CLEANSTART-2026-HT67840","CLSA-2026-1791679650","CLSA-2026-1791827421","DEBIAN-CVE-2026-106445","ECHO-99e3-a778-74df","GHSA-p8wg-vrv2-v86f","MINI-39gf-jwx3-wqpx","MINI-fjh5-38xg-q8g3","MINI-g662-v44x-f66x","MINI-gxgv-x9fp-9hq2","MINI-j3p5-vmc7-86cg","MINI-j72r-gh3h-6rx4","MINI-jgjp-9j8p-jm58","MINI-mp9p-gm44-fqvp","MINI-qm78-m7p4-4754","MINI-w5m8-4672-p8hg","MINI-wrxp-4w63-jppq","ROOT-APP-NPM-CVE-2026-106445","UBUNTU-CVE-2026-106445"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"JavaScript template library","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript by bypassing prototype checks in Handlebars templates when specific configuration options are enabled.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.2,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"},{"id":"CWE-1289","name":"Improper Validation of Unsafe Equivalence in Input"}],"description":"Handlebars provides the power necessary to let users build semantic templates. From 3.0.0 until 4.7.10, Handlebars lookupProperty returns Function.prototype.constructor before applying the prototype-access deny list because constructor is an own property of Function.prototype. When an attacker can render a controlled template with allowProtoMethodsByDefault enabled and an accessible function in the template context, the template can traverse from that function through its prototype to Function.prototype and then obtain the Function constructor through the own-property bypass. This permits attacker-controlled JavaScript to execute with the server application's privileges. This issue is fixed in version 4.7.10.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-10-10","github_poc":1,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-10-10T08:24:22Z","kind":"github_poc","ref":"https://github.com/murrez/CVE-2026-106445","stars":2,"title":"CVE-2026-106445 — Handlebars 4.0.0–4.7.9 RCE via Function.prototype.constructor bypass (GHSA-p8wg-vrv2-v86f). PoCbit PoC + Docker lab (4.7.9), check/exploit HTTP client, GHSA template chain. Fixed 4.7.10. https://pocbit.org/pocs/cve-2026-106445"}],"tier":"weaponised"},"has_fix":true,"headline":"Handlebars: JavaScript Injection via Own Property Check Bypass","id":"CVE-2026-106445","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Handlebars: JavaScript Injection via AST Type Confusion in compile (Program.blockParams)","id":"CVE-2026-106446"},"packages":[{"ecosystem":"npm","fixed":["4.7.10"],"introduced":["3.0.0"],"last_affected":[],"package":"handlebars","purl":null,"source":"GHSA-p8wg-vrv2-v86f"},{"ecosystem":"npm","fixed":["4.7.10"],"introduced":["3.0.0"],"last_affected":[],"package":"handlebars","purl":"pkg:npm/handlebars","source":"GHSA-p8wg-vrv2-v86f"}],"prev":{"headline":"Handlebars: JavaScript Injection via Unsafe Inline Embedding of Precompiled Templates","id":"CVE-2026-106444"},"products":["handlebars.js"],"published":"2026-10-06","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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-12","vendors":["handlebars-lang"]},"summary":"Attackers can execute arbitrary JavaScript by bypassing prototype checks in Handlebars templates when specific configuration options are enabled.","url":"https://insights.sbomify.com/CVE-2026-106445/"}