Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. handlebars
  4. ›
  5. GHSA-7rx3-28cr-v5wh

GHSA-7rx3-28cr-v5wh: Handlebars.js has a Prototype Method Access Control Gap via Missing __lookupSetter__ Blocklist Entry

March 29, 2026

The prototype method blocklist in lib/handlebars/internal/proto-access.js blocks constructor, __defineGetter__, __defineSetter__, and __lookupGetter__, but omits the symmetric __lookupSetter__. This omission is only exploitable when the non-default runtime option allowProtoMethodsByDefault: true is explicitly set — in that configuration __lookupSetter__ becomes accessible while its counterparts remain blocked, creating an inconsistent security boundary.

4.6.0 is the version that introduced protoAccessControl and the allowProtoMethodsByDefault runtime option.

References

  • github.com/advisories/GHSA-765h-qjxv-5f44
  • github.com/advisories/GHSA-7rx3-28cr-v5wh
  • github.com/handlebars-lang/handlebars.js
  • github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9
  • github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-7rx3-28cr-v5wh

Code Behaviors & Features

Detect and mitigate GHSA-7rx3-28cr-v5wh with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.6.0 before 4.7.9

Fixed versions

  • 4.7.9

Solution

Upgrade to version 4.7.9 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/handlebars/GHSA-7rx3-28cr-v5wh.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:32 +0000.