{"id":"CVE-2026-106445","published":"2026-10-06T19:39:08Z","modified":"2026-10-12T14:33:33Z","title":"Handlebars: JavaScript Injection via Own Property Check Bypass","vendor":"handlebars-lang","product":"handlebars.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.2,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0055,"percentile":0.39625,"provenance":"source"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"},{"id":"CWE-1289","name":"Improper Validation of Unsafe Equivalence in Input"}],"references":[{"url":"https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-p8wg-vrv2-v86f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/handlebars-lang/handlebars.js/pull/2185","tags":["x_refsource_MISC"]},{"url":"https://github.com/handlebars-lang/handlebars.js/commit/ceec388abe1d1aac8f6369860d5f390fa71ef4fa","tags":["x_refsource_MISC"]},{"url":"https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.10","tags":["x_refsource_MISC"]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":7.92},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.44}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-10-10","earliestUrl":"https://github.com/murrez/CVE-2026-106445","repos":[{"name":"murrez/CVE-2026-106445","url":"https://github.com/murrez/CVE-2026-106445","stars":2,"created":"2026-10-10"}]},"first":{"date":"2026-10-10","source":"PoC-in-GitHub","url":"https://github.com/murrez/CVE-2026-106445"},"provenance":"source"},"vendorSlug":"handlebars-lang","affectedVersions":[{"vendor":"handlebars-lang","product":"handlebars.js","versions":[">= 3.0.0, < 4.7.10"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-09T01:42:53.531967Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"handlebars","vulnerableRanges":[">=3.0.0, <4.7.10"],"patched":["4.7.10"],"from":["GHSA-p8wg-vrv2-v86f"],"provenance":"source"}],"summary":{"text":"The Handlebars.js templating library, versions 3.0.0 through 4.7.10, has a flaw in its lookupProperty logic where Function.prototype.constructor is returned before the prototype-access deny list is applied. An attacker who can supply a template rendered with allowProtoMethodsByDefault enabled, and who has an accessible function in the template context, can use this to run arbitrary JavaScript with the server application's privileges, with no authentication or user interaction required and only the ability to get a controlled template rendered.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-23T07:19:33Z"},"euvd":{"id":"EUVD-2026-93952","exploited":false,"provenance":"source"}}