Skip to main content

Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in handlebars

CVE-2021-23383

  • handlebars
  • org.webjars.bower:handlebars
  • org.webjars:handlebars
  • org.webjars.npm:handlebars
Severity High
Score 9.8/10

Summary

The package handlebars versions prior to 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to compile templates coming from an untrusted source.

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • NONE
  • HIGH
  • HIGH

CWE-1321 - Prototype Pollution

Prototype pollution is one of the lesser-known vulnerabilities. It allows attackers to abuse the rules of JavaScript by injecting properties into the general object “Object” in JS. Modifying the prototype of “Object” affects the behavior of all objects in the entire app, potentially resulting in denial of service, arbitrary code execution, cross-site scripting, etc.

Advisory Timeline

  • Published