Description
The prototype method blocklist in lib/handlebars/internal/proto-access.js blocks constructor, __defineGetter__, __defineSetter__, and __lookupGetter__, but omits the symmetric __lookupSetter__.
Recommendation
Update the handlebars package to the latest compatible version. Followings are version details:
- Affected version(s): >= 4.6.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 Prototype Method Access Control Gap via Missing __lookupSetter__ Blocklist Entry and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Handlebars.js has a Property Access Validation Bypass in container.lookup - Vulnerability
- Karakeep SDK has SSRF via metascraper-logo-favicon that bypasses validateUrl protections - Vulnerability
- vue-i18n has cross-site scripting vulnerability with prototype pollution - @intlify/core-base - CVE-2024-52809
- jsPDF has a PDF Object Injection via Unsanitized Input in addJS Method - CVE-2026-25755


