{"id":"DHI-5tgk-xtdl-pjq6-zck7","summary":"Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, a…","details":"Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, a crafted object placed in the template context can bypass all conditional guards in `resolvePartial()` and cause `invokePartial()` to return `undefined`. The Handlebars runtime then treats the unresolved partial as a source that needs to be compiled, passing the crafted object to `env.compile()`. Because the object is a valid Handlebars AST containing injected code, the generated JavaScript executes arbitrary commands on the server. The attack requires the adversary to control a value that can be returned by a dynamic partial lookup. Version 4.7.9 fixes the issue. Some workarounds are available. First, use the runtime-only build (`require('handlebars/runtime')`). Without `compile()`,  the fallback compilation path in `invokePartial` is unreachable. Second, sanitize context data before rendering: Ensure no value in the context is a non-primitive  object that could be passed to a dynamic partial. Third, avoid dynamic partial lookups (`{{\u003e (lookup ...)}}`) when context data is user-controlled.","modified":"2026-11-21T14:30:13.553355761Z","published":"2026-11-12T03:28:18Z","upstream":["CVE-2026-33940"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-5tgk-xtdl-pjq6-zck7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33940"},{"type":"ADVISORY","url":"https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-xhpv-hc6g-r9c6"},{"type":"FIX","url":"https://github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2"},{"type":"WEB","url":"https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-33940"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xhpv-hc6g-r9c6"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-33940"},{"type":"FIX","url":"https://www.cve.org/CVERecord?id=CVE-2026-33940"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-33940"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-33940"}],"affected":[{"package":{"name":"jupyterhub-k8s-singleuser-sample-fips","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/jupyterhub-k8s-singleuser-sample-fips"},"versions":["4.4.5-r0","4.4.5-r1","4.4.5-r2","4.4.5-r3","4.4.5-r4"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-5tgk-xtdl-pjq6-zck7.json"}},{"package":{"name":"jupyterhub-k8s-singleuser-sample","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/jupyterhub-k8s-singleuser-sample"},"versions":["4.4.5-r0","4.4.5-r1","4.4.5-r2","4.4.5-r3","4.4.5-r4"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-5tgk-xtdl-pjq6-zck7.json","owner_kind":"HSP"}},{"package":{"name":"datahub-ingestion","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/datahub-ingestion"},"versions":["1.5.0.7-0","1.6.0.1-0","1.6.0.1-1","1.6.0.1-2","1.6.0.1-3","1.6.0.2-0","1.6.0.2-1","1.7.0.10-0","1.7.0.12-0","1.7.0.13-0","1.7.0.14-0","1.7.0.14-1","1.7.0.14-2","1.7.0.16-0","1.7.0.16-1","1.7.0.17-0","1.7.0.17-1","1.7.0.17-2","1.7.0.17-3","1.7.0.18-0","1.7.0.19-0","1.7.0.19-1","1.7.0.19-2","1.7.0.19-3","1.7.0.19-4","1.7.0.19-5","1.7.0.19-6","1.7.0.20-6","1.7.0.20-7","1.7.0.20-8"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-5tgk-xtdl-pjq6-zck7.json"}},{"package":{"name":"jupyterhub-k8s-singleuser-sample-fips","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/jupyterhub-k8s-singleuser-sample-fips"},"versions":["4.4.5-0","4.4.5-1","4.4.5-2","4.4.5-3","4.4.5-4"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-5tgk-xtdl-pjq6-zck7.json"}},{"package":{"name":"jupyterhub-k8s-singleuser-sample","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/jupyterhub-k8s-singleuser-sample"},"versions":["4.4.5-0","4.4.5-1","4.4.5-2","4.4.5-3","4.4.5-4"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-5tgk-xtdl-pjq6-zck7.json"}},{"package":{"name":"superset","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/superset"},"versions":["6.1.0-0","6.1.0-1","6.1.0-10","6.1.0-11","6.1.0-12","6.1.0-13","6.1.0-14","6.1.0-15","6.1.0-16","6.1.0-17","6.1.0-18","6.1.0-19","6.1.0-2","6.1.0-20","6.1.0-21","6.1.0-22","6.1.0-23","6.1.0-24","6.1.0-25","6.1.0-26","6.1.0-27","6.1.0-28","6.1.0-29","6.1.0-3","6.1.0-30","6.1.0-31","6.1.0-32","6.1.0-33","6.1.0-34","6.1.0-35","6.1.0-36","6.1.0-37","6.1.0-38","6.1.0-39","6.1.0-4","6.1.0-40","6.1.0-41","6.1.0-42","6.1.0-5","6.1.0-6","6.1.0-7","6.1.0-8","6.1.0-9"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-5tgk-xtdl-pjq6-zck7.json","owner_kind":"HSP"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}