{"id":"CVE-2026-33940","aliases":["DEBIAN-CVE-2026-33940","DHI-5tgk-xtdl-pjq6-zck7","GHSA-xhpv-hc6g-r9c6","UBUNTU-CVE-2026-33940"],"summary":"Handlebars.js has JavaScript Injection via AST Type Confusion when passing an object as dynamic partial","published_at":"2026-03-27T18:21:44Z","modified_at":"2026-11-18T23:45:09.436716Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"},{"slug":"freeipa","name":"FreeIPA / IdM","category":"identity"}],"rating":{"severity":"high","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.007309999782592058,"percentile":0.5508999824523926,"date":"2026-11-19T00:00:00Z"},"priority":10.1,"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 (`{{> (lookup ...)}}`) when context data is user-controlled.","affected_stack":[{"ecosystem":"Red Hat:enterprise_linux:10","package":"thunderbird","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"389-ds-base","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"389-ds-base-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"389-ds-base-legacy-tools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"389-ds-base-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"389-ds-base-snmp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"cockpit-389-ds","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"python3-lib389","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"firefox","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"firefox-x11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"handlebars-lang/handlebars.js","versions":[">= 4.0.0, < 4.7.9"],"provider":"cvelistv5","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Debian:12","package":"node-handlebars","purl":"pkg:deb/debian/node-handlebars?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.10-1","3:4.7.7+~4.1.0-1","3:4.7.9-1","3:4.7.9-2","3:4.7.9-3","3:4.7.9-4","3:4.7.9-5","3:4.7.9-6"],"provider":"osv","source":"DEBIAN-CVE-2026-33940","relation":"self"},{"ecosystem":"Debian:13","package":"node-handlebars","purl":"pkg:deb/debian/node-handlebars?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.10-1","3:4.7.7+~4.1.0-1","3:4.7.9-1","3:4.7.9-2","3:4.7.9-3","3:4.7.9-4","3:4.7.9-5","3:4.7.9-6"],"provider":"osv","source":"DEBIAN-CVE-2026-33940","relation":"self"},{"ecosystem":"Debian:14","package":"node-handlebars","purl":"pkg:deb/debian/node-handlebars?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3:4.7.9-1"}]}],"versions":["3:4.7.7+~4.1.0-1"],"fixed":["3:4.7.9-1"],"provider":"osv","source":"DEBIAN-CVE-2026-33940","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"jupyterhub-k8s-singleuser-sample","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"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"jupyterhub-k8s-singleuser-sample-fips","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"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"datahub-ingestion","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"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"jupyterhub-k8s-singleuser-sample","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"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"jupyterhub-k8s-singleuser-sample-fips","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"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"superset","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-5","6.1.0-6","6.1.0-7","6.1.0-8","6.1.0-9"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"},{"ecosystem":"NVD","package":"handlebarsjs:handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.7.9"}]}],"fixed":["4.7.9"],"provider":"nvd","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.3-tuxcare.0"},{"fixed":"3.0.3-tuxcare.2"}]}],"versions":["3.0.3","3.0.3-tuxcare.1"],"fixed":["3.0.3-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1777163884","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.7.7-tuxcare.0"},{"fixed":"4.7.7-tuxcare.1"}]}],"versions":["4.7.7"],"fixed":["4.7.7-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1782349135","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.7.8-tuxcare.0"},{"fixed":"4.7.8-tuxcare.1"}]}],"versions":["4.7.8"],"fixed":["4.7.8-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1782435546","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.8-tuxcare.0"},{"fixed":"3.0.8-tuxcare.3"}]}],"versions":["3.0.8","3.0.8-tuxcare.1","3.0.8-tuxcare.2"],"fixed":["3.0.8-tuxcare.3"],"provider":"osv","source":"CLSA-2026-1785117463","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0-tuxcare.0"},{"fixed":"2.0.0-tuxcare.5"}]}],"versions":["2.0.0","2.0.0-tuxcare.1","2.0.0-tuxcare.2","2.0.0-tuxcare.3","2.0.0-tuxcare.4"],"fixed":["2.0.0-tuxcare.5"],"provider":"osv","source":"CLSA-2026-1787070403","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.5.3-tuxcare.0"},{"fixed":"4.5.3-tuxcare.3"}]}],"versions":["4.5.3","4.5.3-tuxcare.1","4.5.3-tuxcare.2"],"fixed":["4.5.3-tuxcare.3"],"provider":"osv","source":"CLSA-2026-1792139237","relation":"upstream"},{"ecosystem":"Ubuntu:18.04:LTS","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.0.10-5"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.1.0-1","3:4.5.3-1","3:4.7.2-1"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.6+~4.1.0-2","3:4.7.7+~4.1.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.7+~4.1.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.7+~4.1.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.7+~4.1.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.7+~4.1.0-1","3:4.7.9-5"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.7.9"}]}],"fixed":["4.7.9"],"provider":"osv","source":"GHSA-xhpv-hc6g-r9c6","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Cluster Observability Operator 1.5","cpe":"cpe:/a:redhat:cluster_observability_operator:1.5::el9","status":"fixed","packages":["cluster-observability-operator/logging-console-plugin-pf4-rhel9","cluster-observability-operator/logging-console-plugin-pf5-rhel9","cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9"],"package_count":3,"fixed":[],"advisories":["RHSA-2026:34342"],"provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Cluster Observability Operator 1.5","cpe":"cpe:/a:redhat:cluster_observability_operator:1.5::el9","status":"not_affected","packages":["cluster-observability-operator/alertmanager-rhel9","cluster-observability-operator/cluster-health-analyzer-rhel9","cluster-observability-operator/cluster-observability-operator-bundle","cluster-observability-operator/cluster-observability-rhel9-operator","cluster-observability-operator/dashboards-console-plugin-rhel9","cluster-observability-operator/distributed-tracing-console-plugin-pf4-rhel9","cluster-observability-operator/distributed-tracing-console-plugin-pf5-rhel9","cluster-observability-operator/distributed-tracing-console-plugin-pf6-rhel9","cluster-observability-operator/distributed-tracing-console-plugin-rhel9","cluster-observability-operator/korrel8r-rhel9","cluster-observability-operator/logging-console-plugin-rhel9","cluster-observability-operator/monitoring-console-plugin-pf5-rhel9","cluster-observability-operator/monitoring-console-plugin-pf6-rhel9","cluster-observability-operator/monitoring-console-plugin-rhel9","cluster-observability-operator/obo-prometheus-operator-admission-webhook-rhel9","cluster-observability-operator/obo-prometheus-operator-prometheus-config-reloader-rhel9","cluster-observability-operator/obo-prometheus-rhel9-operator","cluster-observability-operator/perses-rhel9","cluster-observability-operator/perses-rhel9-operator","cluster-observability-operator/prometheus-rhel9","cluster-observability-operator/thanos-rhel9","cluster-observability-operator/troubleshooting-panel-console-plugin-rhel9"],"package_count":22,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Cryostat 4","cpe":"cpe:/a:redhat:cryostat:4","status":"not_affected","packages":["handlebars"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"affected","packages":["openshift-logging/elasticsearch-operator-bundle","openshift-logging/elasticsearch-proxy-rhel9","openshift-logging/elasticsearch-rhel9-operator","openshift-logging/elasticsearch6-rhel9","openshift-logging/kibana6-rhel8","openshift-logging/logging-curator5-rhel9"],"package_count":6,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Data Grid 8","cpe":"cpe:/a:redhat:jboss_data_grid:8","status":"not_affected","packages":["handlebars"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_cannot_be_controlled_by_adversary","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"not_affected","packages":["rhdh/rhdh-hub-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"affected","packages":["thunderbird"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"not_affected","packages":["firefox"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["firefox"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"affected","packages":["389-ds-base","389-ds-base-devel","389-ds-base-legacy-tools","389-ds-base-libs","389-ds-base-snmp","cockpit-389-ds","python3-lib389"],"package_count":7,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["firefox","mozjs60","mozjs60-devel","thunderbird"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["grafana","grafana-azure-monitor","grafana-cloudwatch","grafana-elasticsearch","grafana-graphite","grafana-influxdb","grafana-loki","grafana-mssql","grafana-mysql","grafana-opentsdb","grafana-postgres","grafana-prometheus","grafana-selinux","grafana-stackdriver"],"package_count":14,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"affected","packages":["firefox","firefox-x11"],"package_count":2,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["thunderbird"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.27","cpe":"cpe:/a:redhat:openshift_devspaces:3.27::el9","status":"fixed","packages":["devspaces"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:10175"],"provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.27","cpe":"cpe:/a:redhat:openshift_devspaces:3.27::el9","status":"not_affected","packages":["devspaces"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Process Automation 7","cpe":"cpe:/a:redhat:jboss_bpms:7","status":"not_affected","packages":["handlebars"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-33940"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-1434","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1434","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-05-07T22:00:00Z","modified_at":"2026-11-09T23:00:00Z","summary":"IBM App Connect Enterprise Certified Container: Mehrere Schwachstellen","details":"Ein Angreifer kann mehrere Schwachstellen in IBM App Connect Enterprise Certified Container ausnutzen, um beliebigen Programmcode auszuführen, vertrauliche Informationen offenzulegen, einen Denial-of-Service-Zustand zu verursachen oder Cross-Site-Scripting-Angriffe durchzuführen.\n\nIBM App Connect Enterprise kombiniert die branchenbewährten Technologien des IBM Integration Bus mit Cloud-nativen Technologien.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2026-1434"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1434.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1434"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7272296"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7272295"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:30089"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7292374"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7296008"}]},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-3655","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3655","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-09-29T22:00:00Z","modified_at":"2026-09-29T22:00:00Z","summary":"IBM InfoSphere Data Replication: Mehrere Schwachstellen","details":"Ein Angreifer kann mehrere Schwachstellen in IBM InfoSphere Data Replication ausnutzen, um beliebigen Programmcode auszuführen, um einen Denial of Service Angriff durchzuführen und um einen Cross-Site Scripting Angriff durchzuführen.\n\nIBM InfoSphere Data Replication bietet protokollbasierte Änderungsdatenerfassung mit Transaktionsintegrität zur Unterstützung von Big-Data-Integration und Konsolidierung sowie für maßgeschneiderte Warehousing- und Analyseinitiativen.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2026-3655"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3655.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3655"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7290075"}]},{"provider":"osv","source_id":"CLSA-2026-1777163884","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1777163884","published_at":"2026-08-04T14:52:28Z","modified_at":"2026-10-15T09:45:48.681742Z","summary":"TuxCare security update for handlebars (2 CVEs)","details":"TuxCare rebuilt handlebars to address 2 CVEs. Fixed in 3.0.3-tuxcare.2.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.3-tuxcare.0"},{"fixed":"3.0.3-tuxcare.2"}]}],"versions":["3.0.3","3.0.3-tuxcare.1"],"fixed":["3.0.3-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1777163884","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1782349135","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1782349135","published_at":"2026-08-04T14:52:39Z","modified_at":"2026-10-15T09:47:10.129115Z","summary":"TuxCare security update for handlebars (8 CVEs)","details":"TuxCare rebuilt handlebars to address 8 CVEs. Fixed in 4.7.7-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.7.7-tuxcare.0"},{"fixed":"4.7.7-tuxcare.1"}]}],"versions":["4.7.7"],"fixed":["4.7.7-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1782349135","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1782435546","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1782435546","published_at":"2026-08-04T14:52:39Z","modified_at":"2026-10-15T09:47:10.153121Z","summary":"TuxCare security update for handlebars (8 CVEs)","details":"TuxCare rebuilt handlebars to address 8 CVEs. Fixed in 4.7.8-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.7.8-tuxcare.0"},{"fixed":"4.7.8-tuxcare.1"}]}],"versions":["4.7.8"],"fixed":["4.7.8-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1782435546","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1785117463","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1785117463","published_at":"2026-08-04T14:52:49Z","modified_at":"2026-10-15T09:47:36.940994Z","summary":"TuxCare security update for handlebars (5 CVEs)","details":"TuxCare rebuilt handlebars to address 5 CVEs. Fixed in 3.0.8-tuxcare.3.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.8-tuxcare.0"},{"fixed":"3.0.8-tuxcare.3"}]}],"versions":["3.0.8","3.0.8-tuxcare.1","3.0.8-tuxcare.2"],"fixed":["3.0.8-tuxcare.3"],"provider":"osv","source":"CLSA-2026-1785117463","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1787070403","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1787070403","published_at":"2026-08-18T16:26:43Z","modified_at":"2026-10-15T09:47:11.811218Z","summary":"TuxCare security update for handlebars (2 CVEs)","details":"TuxCare rebuilt handlebars to address 2 CVEs. Fixed in 2.0.0-tuxcare.5.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0-tuxcare.0"},{"fixed":"2.0.0-tuxcare.5"}]}],"versions":["2.0.0","2.0.0-tuxcare.1","2.0.0-tuxcare.2","2.0.0-tuxcare.3","2.0.0-tuxcare.4"],"fixed":["2.0.0-tuxcare.5"],"provider":"osv","source":"CLSA-2026-1787070403","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1792139237","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1792139237","published_at":"2026-10-16T08:27:17Z","modified_at":"2026-10-16T12:15:03.193874Z","summary":"TuxCare security update for handlebars (7 CVEs)","details":"TuxCare rebuilt handlebars to address 7 CVEs. Fixed in 4.5.3-tuxcare.3.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.5.3-tuxcare.0"},{"fixed":"4.5.3-tuxcare.3"}]}],"versions":["4.5.3","4.5.3-tuxcare.1","4.5.3-tuxcare.2"],"fixed":["4.5.3-tuxcare.3"],"provider":"osv","source":"CLSA-2026-1792139237","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2026-33940","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-33940","license":"CC-BY-4.0","published_at":"2026-03-27T21:11:10.719Z","modified_at":"2026-09-04T12:04:53.335Z","summary":"Handlebars.js has JavaScript Injection via AST Type Confusion when passing an object as dynamic partial","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 (`{{> (lookup ...)}}`) when context data is user-controlled.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2026-33940"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"redhat-SADP:CVE-2026-33940"}],"affected":[{"ecosystem":"CVE","package":"handlebars-lang/handlebars.js","versions":[">= 4.0.0, < 4.7.9"],"provider":"cvelistv5","source":"CVE-2026-33940","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-xhpv-hc6g-r9c6"},{"type":"WEB","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"}]},{"provider":"nvd","source_id":"CVE-2026-33940","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33940","severity":[],"affected":[{"ecosystem":"NVD","package":"handlebarsjs:handlebars","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.7.9"}]}],"fixed":["4.7.9"],"provider":"nvd","source":"CVE-2026-33940","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2026-33940","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-33940","published_at":"2026-03-27T22:16:21.03Z","modified_at":"2026-10-27T10:00:52.638229Z","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 (`{{> (lookup ...)}}`) when context data is user-controlled.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"DEBIAN-CVE-2026-33940"}],"affected":[{"ecosystem":"Debian:12","package":"node-handlebars","purl":"pkg:deb/debian/node-handlebars?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.10-1","3:4.7.7+~4.1.0-1","3:4.7.9-1","3:4.7.9-2","3:4.7.9-3","3:4.7.9-4","3:4.7.9-5","3:4.7.9-6"],"provider":"osv","source":"DEBIAN-CVE-2026-33940","relation":"self"},{"ecosystem":"Debian:13","package":"node-handlebars","purl":"pkg:deb/debian/node-handlebars?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.10-1","3:4.7.7+~4.1.0-1","3:4.7.9-1","3:4.7.9-2","3:4.7.9-3","3:4.7.9-4","3:4.7.9-5","3:4.7.9-6"],"provider":"osv","source":"DEBIAN-CVE-2026-33940","relation":"self"},{"ecosystem":"Debian:14","package":"node-handlebars","purl":"pkg:deb/debian/node-handlebars?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3:4.7.9-1"}]}],"versions":["3:4.7.7+~4.1.0-1"],"fixed":["3:4.7.9-1"],"provider":"osv","source":"DEBIAN-CVE-2026-33940","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-33940"}]},{"provider":"osv","source_id":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self","url":"https://osv.dev/vulnerability/DHI-5tgk-xtdl-pjq6-zck7","license":"Apache-2.0","published_at":"2026-11-12T03:28:18Z","modified_at":"2026-11-18T23:45:09.436716Z","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 (`{{> (lookup ...)}}`) when context data is user-controlled.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"DHI-5tgk-xtdl-pjq6-zck7"}],"affected":[{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"jupyterhub-k8s-singleuser-sample","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"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"jupyterhub-k8s-singleuser-sample-fips","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"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"datahub-ingestion","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"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"jupyterhub-k8s-singleuser-sample","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"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"jupyterhub-k8s-singleuser-sample-fips","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"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"superset","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-5","6.1.0-6","6.1.0-7","6.1.0-8","6.1.0-9"],"provider":"osv","source":"DHI-5tgk-xtdl-pjq6-zck7","relation":"self"}],"product_status":[],"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"}]},{"provider":"osv","source_id":"GHSA-xhpv-hc6g-r9c6","relation":"self","url":"https://osv.dev/vulnerability/GHSA-xhpv-hc6g-r9c6","license":"CC-BY-4.0","published_at":"2026-03-27T18:21:44Z","modified_at":"2026-09-10T03:50:41.814438Z","summary":"Handlebars.js has JavaScript Injection via AST Type Confusion when passing an object as dynamic partial","details":"## Summary\n\nA 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.\n\n## Description\n\nThe vulnerable code path spans two functions in `lib/handlebars/runtime.js`:\n\n**`resolvePartial()`:** A crafted object with `call: true` satisfies the first branch condition (`partial.call`) and causes an early return of the original object itself, because none of the remaining conditionals (string check, `options.partials` lookup, etc.) match a plain object. The function returns the crafted object as-is.\n\n**`invokePartial()`:** When `resolvePartial` returns a non-function object, `invokePartial` produces `undefined`. The runtime interprets `undefined` as \"partial not yet compiled\" and calls `env.compile(partial, ...)` where `partial` is the crafted AST object. The JavaScript code generator processes the AST and emits JavaScript containing the injected payload, which is then evaluated.\n\n**Minimum prerequisites:**\n1. The template uses a dynamic partial lookup: `{{> (lookup . \"key\")}}` or equivalent.\n2. The adversary can set the value of the looked-up context property to a crafted object.\n\nIn server-side rendering scenarios where templates process user-supplied context data, this enables full Remote Code Execution.\n\n## Proof of Concept\n\n```javascript\nconst Handlebars = require('handlebars');\n\nconst vulnerableTemplate = `{{> (lookup . \"payload\")}}`;\n\nconst maliciousContext = {\n  payload: {\n    call: true, // bypasses the primary resolvePartial branch\n    type: \"Program\",\n    body: [\n      {\n        type: \"MustacheStatement\",\n        depth: 0,\n        path: {\n          type: \"PathExpression\",\n          parts: [\"pop\"],\n          original: \"this.pop\",\n          // Injected code breaks out of the generated function's argument list\n          depth: \"0])),function () {console.error('VULNERABLE: object -> dynamic partial -> RCE');}()));//\",\n        },\n      },\n    ],\n  },\n};\n\nHandlebars.compile(vulnerableTemplate)(maliciousContext);\n// Prints: VULNERABLE: object -> dynamic partial -> RCE\n```\n\n## Workarounds\n\n- **Use the runtime-only build** (`require('handlebars/runtime')`). Without `compile()`,  the fallback compilation path in `invokePartial` is unreachable.\n- **Sanitize context data** before rendering: ensure no value in the context is a non-primitive  object that could be passed to a dynamic partial.\n- **Avoid dynamic partial lookups** (`{{> (lookup ...)}}`) when context data is user-controlled.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-xhpv-hc6g-r9c6"}],"affected":[{"ecosystem":"npm","package":"handlebars","purl":"pkg:npm/handlebars","ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.7.9"}]}],"fixed":["4.7.9"],"provider":"osv","source":"GHSA-xhpv-hc6g-r9c6","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-xhpv-hc6g-r9c6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33940"},{"type":"WEB","url":"https://github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2"},{"type":"PACKAGE","url":"https://github.com/handlebars-lang/handlebars.js"},{"type":"WEB","url":"https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-33940","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-33940","license":"CC-BY-SA-4.0","published_at":"2026-03-27T22:16:00Z","modified_at":"2026-10-17T12:58:11.070468Z","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 (`{{> (lookup ...)}}`) when context data is user-controlled.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"UBUNTU-CVE-2026-33940"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-33940"}],"affected":[{"ecosystem":"Ubuntu:18.04:LTS","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=bionic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.0.10-5"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.1.0-1","3:4.5.3-1","3:4.7.2-1"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.6+~4.1.0-2","3:4.7.7+~4.1.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.7+~4.1.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.7+~4.1.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.7+~4.1.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"node-handlebars","purl":"pkg:deb/ubuntu/node-handlebars?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3:4.7.7+~4.1.0-1","3:4.7.9-5"],"provider":"osv","source":"UBUNTU-CVE-2026-33940","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-33940"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-33940"},{"type":"REPORT","url":"https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-xhpv-hc6g-r9c6"},{"type":"REPORT","url":"https://github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2"},{"type":"REPORT","url":"https://github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2"},{"type":"REPORT","url":"https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9"}]},{"provider":"redhat-vex","source_id":"CVE-2026-33940","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-33940","license":"CC-BY-4.0","published_at":"2026-03-27T21:11:10.719Z","modified_at":"2026-11-03T16:59:25Z","summary":"handlebars.js: Handlebars.js: Arbitrary code execution via crafted template context","details":"A flaw was found in Handlebars.js. A remote attacker can exploit this vulnerability by providing a specially crafted object within the template context. This crafted object, when processed by a dynamic partial lookup, can bypass security checks and be interpreted as malicious code. This allows the attacker to execute arbitrary commands on the server where Handlebars.js is running.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2026-33940"},{"type":"Red Hat","score":"Important","source":"CVE-2026-33940"}],"affected":[{"ecosystem":"Red Hat:enterprise_linux:10","package":"thunderbird","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"389-ds-base","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"389-ds-base-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"389-ds-base-legacy-tools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"389-ds-base-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"389-ds-base-snmp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"cockpit-389-ds","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:8","package":"python3-lib389","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"firefox","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"},{"ecosystem":"Red Hat:enterprise_linux:9","package":"firefox-x11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2026-33940","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Cluster Observability Operator 1.5","cpe":"cpe:/a:redhat:cluster_observability_operator:1.5::el9","status":"fixed","packages":["cluster-observability-operator/logging-console-plugin-pf4-rhel9","cluster-observability-operator/logging-console-plugin-pf5-rhel9","cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9"],"package_count":3,"fixed":[],"advisories":["RHSA-2026:34342"],"provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Cluster Observability Operator 1.5","cpe":"cpe:/a:redhat:cluster_observability_operator:1.5::el9","status":"not_affected","packages":["cluster-observability-operator/alertmanager-rhel9","cluster-observability-operator/cluster-health-analyzer-rhel9","cluster-observability-operator/cluster-observability-operator-bundle","cluster-observability-operator/cluster-observability-rhel9-operator","cluster-observability-operator/dashboards-console-plugin-rhel9","cluster-observability-operator/distributed-tracing-console-plugin-pf4-rhel9","cluster-observability-operator/distributed-tracing-console-plugin-pf5-rhel9","cluster-observability-operator/distributed-tracing-console-plugin-pf6-rhel9","cluster-observability-operator/distributed-tracing-console-plugin-rhel9","cluster-observability-operator/korrel8r-rhel9","cluster-observability-operator/logging-console-plugin-rhel9","cluster-observability-operator/monitoring-console-plugin-pf5-rhel9","cluster-observability-operator/monitoring-console-plugin-pf6-rhel9","cluster-observability-operator/monitoring-console-plugin-rhel9","cluster-observability-operator/obo-prometheus-operator-admission-webhook-rhel9","cluster-observability-operator/obo-prometheus-operator-prometheus-config-reloader-rhel9","cluster-observability-operator/obo-prometheus-rhel9-operator","cluster-observability-operator/perses-rhel9","cluster-observability-operator/perses-rhel9-operator","cluster-observability-operator/prometheus-rhel9","cluster-observability-operator/thanos-rhel9","cluster-observability-operator/troubleshooting-panel-console-plugin-rhel9"],"package_count":22,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Cryostat 4","cpe":"cpe:/a:redhat:cryostat:4","status":"not_affected","packages":["handlebars"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"affected","packages":["openshift-logging/elasticsearch-operator-bundle","openshift-logging/elasticsearch-proxy-rhel9","openshift-logging/elasticsearch-rhel9-operator","openshift-logging/elasticsearch6-rhel9","openshift-logging/kibana6-rhel8","openshift-logging/logging-curator5-rhel9"],"package_count":6,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Data Grid 8","cpe":"cpe:/a:redhat:jboss_data_grid:8","status":"not_affected","packages":["handlebars"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_cannot_be_controlled_by_adversary","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Developer Hub 1","cpe":"cpe:/a:redhat:rhdh:1","status":"not_affected","packages":["rhdh/rhdh-hub-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"affected","packages":["thunderbird"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","cpe":"cpe:/a:redhat:enterprise_linux:10","status":"not_affected","packages":["firefox"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["firefox"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"affected","packages":["389-ds-base","389-ds-base-devel","389-ds-base-legacy-tools","389-ds-base-libs","389-ds-base-snmp","cockpit-389-ds","python3-lib389"],"package_count":7,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["firefox","mozjs60","mozjs60-devel","thunderbird"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["grafana","grafana-azure-monitor","grafana-cloudwatch","grafana-elasticsearch","grafana-graphite","grafana-influxdb","grafana-loki","grafana-mssql","grafana-mysql","grafana-opentsdb","grafana-postgres","grafana-prometheus","grafana-selinux","grafana-stackdriver"],"package_count":14,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"affected","packages":["firefox","firefox-x11"],"package_count":2,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["thunderbird"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.27","cpe":"cpe:/a:redhat:openshift_devspaces:3.27::el9","status":"fixed","packages":["devspaces"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:10175"],"provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.27","cpe":"cpe:/a:redhat:openshift_devspaces:3.27::el9","status":"not_affected","packages":["devspaces"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-33940"},{"vendor":"Red Hat","product":"Red Hat Process Automation 7","cpe":"cpe:/a:redhat:jboss_bpms:7","status":"not_affected","packages":["handlebars"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-33940"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33940.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-33940"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2452521"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-33940"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33940"},{"type":"WEB","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":"WEB","url":"https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-xhpv-hc6g-r9c6"}]}],"references":[{"type":"WEB","url":"https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-xhpv-hc6g-r9c6"},{"type":"WEB","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://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/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"},{"type":"PACKAGE","url":"https://github.com/handlebars-lang/handlebars.js"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33940.json"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2452521"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-1434","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1434","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-11-09T23:00:00Z","relation":"upstream"},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-3655","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-3655","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-09-29T22:00:00Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1777163884","url":"https://osv.dev/vulnerability/CLSA-2026-1777163884","modified_at":"2026-10-15T09:45:48.681742Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1782349135","url":"https://osv.dev/vulnerability/CLSA-2026-1782349135","modified_at":"2026-10-15T09:47:10.129115Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1782435546","url":"https://osv.dev/vulnerability/CLSA-2026-1782435546","modified_at":"2026-10-15T09:47:10.153121Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1785117463","url":"https://osv.dev/vulnerability/CLSA-2026-1785117463","modified_at":"2026-10-15T09:47:36.940994Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1787070403","url":"https://osv.dev/vulnerability/CLSA-2026-1787070403","modified_at":"2026-10-15T09:47:11.811218Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1792139237","url":"https://osv.dev/vulnerability/CLSA-2026-1792139237","modified_at":"2026-10-16T12:15:03.193874Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-33940","url":"https://www.cve.org/CVERecord?id=CVE-2026-33940","license":"CC-BY-4.0","modified_at":"2026-09-04T12:04:53.335Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-33940","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33940","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2026-33940","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-33940","modified_at":"2026-10-27T10:00:52.638229Z","relation":"self"},{"provider":"osv","source_id":"DHI-5tgk-xtdl-pjq6-zck7","url":"https://osv.dev/vulnerability/DHI-5tgk-xtdl-pjq6-zck7","license":"Apache-2.0","modified_at":"2026-11-18T23:45:09.436716Z","relation":"self"},{"provider":"osv","source_id":"GHSA-xhpv-hc6g-r9c6","url":"https://osv.dev/vulnerability/GHSA-xhpv-hc6g-r9c6","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:41.814438Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-33940","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-33940","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T12:58:11.070468Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-33940","url":"https://access.redhat.com/security/cve/CVE-2026-33940","license":"CC-BY-4.0","modified_at":"2026-11-03T16:59:25Z","relation":"self"}]}
