Red Hat VEX
RHVEX-CVE-2026-106446
handlebars: Handlebars: JavaScript Injection via AST Type Confusion in compile (Program.blockParams)
Details
A flaw was found in Handlebars. Incomplete validation of pre-parsed AST objects passed to compile() or precompile() allows unchecked AST fields to be emitted into generated JavaScript. An attacker who can supply an object instead of a template string can inject and execute arbitrary JavaScript in the application process.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | cockpit | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | cockpit-bridge | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | cockpit-dashboard | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | cockpit-doc | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | cockpit-machines | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | cockpit-packagekit | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | cockpit-pcp | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | cockpit-storaged | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | cockpit-system | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | cockpit-ws | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2026-106446
- https://bugzilla.redhat.com/show_bug.cgi?id=2547120
- https://www.cve.org/CVERecord?id=CVE-2026-106446
- https://nvd.nist.gov/vuln/detail/CVE-2026-106446
- https://github.com/handlebars-lang/handlebars.js/commit/703fdcc5fd6cc8d1cc0c33cc19de40c467c4b8d2
- https://github.com/handlebars-lang/handlebars.js/pull/2185
- https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.10
- https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-8r5x-fm3f-whwj