Vulnerability library
Security checkMarch 29, 2026

Handlebars.js has a Property Access Validation Bypass in container.lookup

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Low severitynpmhandlebars

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

In lib/handlebars/runtime.js, the container.lookup() function uses container.lookupProperty() as a gate check to enforce prototype-access controls, but then discards the validated result and performs a second, unguarded property access (depths[i][name]).

Recommendation

Update the handlebars package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 4.0.0, <= 4.7.8
  • Patched version(s): 4.7.9

References

Could your website be exposed too?

SmartScanner can check your website for Handlebars.js has a Property Access Validation Bypass in container.lookup and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 29, 2026