Red Hat VEX
RHVEX-CVE-2021-23383
nodejs-handlebars: Remote code execution when compiling untrusted compile templates with compat:true option
Details
A flaw was found in nodejs-handlebars. A unescaped value in the JavaScriptCompiler.prototype.depthedLookup function allows an attacker, who can provide untrusted handlebars templates, to execute arbitrary code in the javascript system (e.g. browser or server) when the template is compiled with the compat:true option. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | pcs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | pcs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | pcs-snmp | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-clufter | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | pcs | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | pcs-snmp | All versions, no fix (fix deferred) |