GHSA-7rx3-28cr-v5wh
Handlebars. js has a Prototype Method Access Control Gap via Missing _ _ lookupSetter_ _ Blocklist Entry
- Severity
- 4.8MediumNetwork attack, no privileges, no user interactionCVSS 3.1, GitHub Advisories
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- UnknownNo source reports an EPSS score yet.
- Listed fixes
- 3 packagesFrom GitHub Advisories and OSVFixed versions by package
Overview
Summary
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.
Description
In lib/handlebars/internal/proto-access.js:
const methodWhiteList = Object.create(null);
methodWhiteList['constructor'] = false;
methodWhiteList['__defineGetter__'] = false;
methodWhiteList['__defineSetter__'] = false;
methodWhiteList['__lookupGetter__'] = false;
// __lookupSetter__ intentionally blocked in CVE-2021-23383,
// but omitted here — creating an asymmetric blocklist
All four legacy accessor helpers (__defineGetter__, __defineSetter__, __lookupGetter__, __lookupSetter__) were involved in the exploit chain addressed by CVE-2021-23383. Three of the four were explicitly blocked; __lookupSetter__ was left out.
When allowProtoMethodsByDefault: true is set, any prototype method not present in methodWhiteList is permitted by default. Because __lookupSetter__ is absent from the list, it passes the checkWhiteList check and is accessible in templates, while __lookupGetter__ (its sibling) is correctly denied.
Workarounds
- Do not set
allowProtoMethodsByDefault: true. The default configuration is not affected. - If
allowProtoMethodsByDefaultmust be enabled, ensure templates do not reference__lookupSetter__through untrusted input.
CVSS 3.1 vector
Exploitability
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
Impact
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NAffected
Packages 11
| Package | Affected | Fixed |
|---|---|---|
handlebarsnpm | 4.6.0 to 4.7.8 | 4.7.9 |
| 4.6.0 up to 4.7.9 | 4.7.9 | |
jupyterhub-k8s-singleuser-sample-fipsDocker Hardened Images:Alpine:3.23 | 4.4.5-r0 and later, plus listed versions 4.4.5-r14.4.5-r24.4.5-r34.4.5-r44.4.5-r5 | None listed |
jupyterhub-k8s-singleuser-sample-fipsDocker Hardened Images:Alpine:3.24 | 4.4.5-r0 and later, plus listed versions 4.4.5-r14.4.5-r24.4.5-r34.4.5-r44.4.5-r5 | None listed |
jupyterhub-k8s-singleuser-sampleDocker Hardened Images:Alpine:3.23 | 4.4.5-r0 and later, plus listed versions 4.4.5-r14.4.5-r24.4.5-r34.4.5-r44.4.5-r5 | None listed |
jupyterhub-k8s-singleuser-sampleDocker Hardened Images:Alpine:3.24 | 4.4.5-r0 and later, plus listed versions 4.4.5-r14.4.5-r24.4.5-r34.4.5-r44.4.5-r5 | None listed |
datahub-ingestionDocker Hardened Images:Debian:13 | 1.5.0.7-0 and later, plus listed versions 1.6.0.1-01.6.0.1-11.6.0.1-21.6.0.1-31.6.0.2-0 Show 34 more versionsShow less1.6.0.2-11.7.0.10-01.7.0.12-01.7.0.13-01.7.0.14-01.7.0.14-11.7.0.14-21.7.0.16-01.7.0.16-11.7.0.17-01.7.0.17-11.7.0.17-21.7.0.17-31.7.0.18-01.7.0.19-01.7.0.19-11.7.0.19-21.7.0.19-31.7.0.19-41.7.0.19-51.7.0.19-61.7.0.20-101.7.0.20-61.7.0.20-71.7.0.20-81.7.0.20-91.9.0.1-101.9.0.1-111.9.0.1-121.9.0.1-131.9.0.1-141.9.0.2-141.9.0.2-151.9.0.3-15 | None listed |
jupyterhub-k8s-singleuser-sample-fipsDocker Hardened Images:Debian:13 | 4.4.5-0 and later, plus listed versions 4.4.5-14.4.5-24.4.5-34.4.5-44.4.5-54.4.5-6 | None listed |
jupyterhub-k8s-singleuser-sampleDocker Hardened Images:Debian:13 | 4.4.5-0 and later, plus listed versions 4.4.5-14.4.5-24.4.5-34.4.5-44.4.5-54.4.5-6 | None listed |
supersetDocker Hardened Images:Debian:13 | 6.1.0-0 and later, plus listed versions 6.1.0-16.1.0-106.1.0-116.1.0-126.1.0-13 Show 41 more versionsShow less6.1.0-146.1.0-156.1.0-166.1.0-176.1.0-186.1.0-196.1.0-26.1.0-206.1.0-216.1.0-226.1.0-236.1.0-246.1.0-256.1.0-266.1.0-276.1.0-286.1.0-296.1.0-36.1.0-306.1.0-316.1.0-326.1.0-336.1.0-346.1.0-356.1.0-366.1.0-376.1.0-386.1.0-396.1.0-46.1.0-406.1.0-416.1.0-426.1.0-436.1.0-446.1.0-456.1.0-466.1.0-56.1.0-66.1.0-76.1.0-86.1.0-9 | None listed |
handlebarsRoot:npm | before 4.7.8-aikido.6 | 4.7.8-aikido.64.7.7-aikido.34.7.7-aikido.44.7.7-aikido.5 |
@rootio/handlebarsRoot:npm | before 4.7.8-root.io.5 | 4.7.8-root.io.54.7.8-root.io.64.7.7-root.io.34.7.7-root.io.44.7.7-root.io.5 |
Only in multi-CVE advisories 1
Each of these advisories covers several CVEs at once, so it doesn’t establish that this one affects the package.
| Package | Affected | Fixed |
|---|---|---|
handlebarsTuxCare:npm | 4.7.7-tuxcare.0 up to 4.7.7-tuxcare.1, plus listed versions From an advisory covering 8 CVEs 4.7.7 | 4.7.7-tuxcare.1 |
| 4.7.8-tuxcare.0 up to 4.7.8-tuxcare.1, plus listed versions From an advisory covering 8 CVEs 4.7.8 | 4.7.8-tuxcare.1 | |
| 3.0.8-tuxcare.0 up to 3.0.8-tuxcare.3, plus listed versions From an advisory covering 5 CVEs 3.0.83.0.8-tuxcare.13.0.8-tuxcare.2 | 3.0.8-tuxcare.3 |
Sources
GitHub Advisories Score usedCVSS 3.14.8
Handlebars.js has a Prototype Method Access Control Gap via Missing __lookupSetter__ Blocklist Entry
Summary
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.
Description
In lib/handlebars/internal/proto-access.js:
const methodWhiteList = Object.create(null);
methodWhiteList['constructor'] = false;
methodWhiteList['__defineGetter__'] = false;
methodWhiteList['__defineSetter__'] = false;
methodWhiteList['__lookupGetter__'] = false;
// __lookupSetter__ intentionally blocked in CVE-2021-23383,
// but omitted here — creating an asymmetric blocklist
All four legacy accessor helpers (__defineGetter__, __defineSetter__, __lookupGetter__, __lookupSetter__) were involved in the exploit chain addressed by CVE-2021-23383. Three of the four were explicitly blocked; __lookupSetter__ was left out.
When allowProtoMethodsByDefault: true is set, any prototype method not present in methodWhiteList is permitted by default. Because __lookupSetter__ is absent from the list, it passes the checkWhiteList check and is accessible in templates, while __lookupGetter__ (its sibling) is correctly denied.
Workarounds
- Do not set
allowProtoMethodsByDefault: true. The default configuration is not affected. - If
allowProtoMethodsByDefaultmust be enabled, ensure templates do not reference__lookupSetter__through untrusted input.
- Record
GHSA-7rx3-28cr-v5wh- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-1321
- Updated
- 2026-11-02
OSVDHI-utel-a37b-twsj-szxdCVSS 3.14.8
## Summary
Summary
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.
Description
In lib/handlebars/internal/proto-access.js:
const methodWhiteList = Object.create(null);
methodWhiteList['constructor'] = false;
methodWhiteList['__defineGetter__'] = false;
methodWhiteList['__defineSetter__'] = false;
methodWhiteList['__lookupGetter__'] = false;
// __lookupSetter__ intentionally blocked in CVE-2021-23383,
// but omitted here — creating an asymmetric blocklist
All four legacy accessor helpers (__defineGetter__, __defineSetter__, __lookupGetter__, __lookupSetter__) were involved in the exploit chain addressed by CVE-2021-23383. Three of the four were explicitly blocked; __lookupSetter__ was left out.
When allowProtoMethodsByDefault: true is set, any prototype method not present in methodWhiteList is permitted by default. Because __lookupSetter__ is absent from the list, it passes the checkWhiteList check and is accessible in templates, while __lookupGetter__ (its sibling) is correctly denied.
Workarounds
- Do not set
allowProtoMethodsByDefault: true. The default configuration is not affected. - If
allowProtoMethodsByDefaultmust be enabled, ensure templates do not reference__lookupSetter__through untrusted input.
- Record
DHI-utel-a37b-twsj-szxd- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Updated
- 2026-12-04
OSVCVSS 3.14.8
Handlebars.js has a Prototype Method Access Control Gap via Missing __lookupSetter__ Blocklist Entry
Summary
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.
Description
In lib/handlebars/internal/proto-access.js:
const methodWhiteList = Object.create(null);
methodWhiteList['constructor'] = false;
methodWhiteList['__defineGetter__'] = false;
methodWhiteList['__defineSetter__'] = false;
methodWhiteList['__lookupGetter__'] = false;
// __lookupSetter__ intentionally blocked in CVE-2021-23383,
// but omitted here — creating an asymmetric blocklist
All four legacy accessor helpers (__defineGetter__, __defineSetter__, __lookupGetter__, __lookupSetter__) were involved in the exploit chain addressed by CVE-2021-23383. Three of the four were explicitly blocked; __lookupSetter__ was left out.
When allowProtoMethodsByDefault: true is set, any prototype method not present in methodWhiteList is permitted by default. Because __lookupSetter__ is absent from the list, it passes the checkWhiteList check and is accessible in templates, while __lookupGetter__ (its sibling) is correctly denied.
Workarounds
- Do not set
allowProtoMethodsByDefault: true. The default configuration is not affected. - If
allowProtoMethodsByDefaultmust be enabled, ensure templates do not reference__lookupSetter__through untrusted input.
- Record
GHSA-7rx3-28cr-v5wh- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-1321
- Updated
- 2026-11-02
OSVROOT-APP-NPM-GHSA-7rx3-28cr-v5whCVSS 3.14.8
GHSA-7rx3-28cr-v5wh in handlebars - Patched by Root
Root has patched GHSA-7rx3-28cr-v5wh in the handlebars package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-GHSA-7rx3-28cr-v5wh- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - Updated
- 2026-11-02
OSVCLSA-2026-1782349135No score
TuxCare security update for handlebars (8 CVEs)
TuxCare rebuilt handlebars to address 8 CVEs. Fixed in 4.7.7-tuxcare.1.
- Record
CLSA-2026-1782349135- Updated
- 2026-11-02
OSVCLSA-2026-1782435546No score
TuxCare security update for handlebars (8 CVEs)
TuxCare rebuilt handlebars to address 8 CVEs. Fixed in 4.7.8-tuxcare.1.
- Record
CLSA-2026-1782435546- Updated
- 2026-11-02
OSVCLSA-2026-1785117463No score
TuxCare security update for handlebars (5 CVEs)
TuxCare rebuilt handlebars to address 5 CVEs. Fixed in 3.0.8-tuxcare.3.
- Record
CLSA-2026-1785117463- Updated
- 2026-11-02
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| Affected packages | OSV | |
| First indexed | GitHub Advisories, OSV |
Upstream dates may differ.
References
github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-7rx3-28cr-v5wh
github.com/advisories/GHSA-765h-qjxv-5f44
github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9
github.com/advisories/GHSA-7rx3-28cr-v5wh
scout.docker.com/v/DHI-utel-a37b-twsj-szxd
github.com/handlebars-lang/handlebars.js