Skip to content
Heist/ feed
Back to feed
CriticalFix available

node-handlebars — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-106446

Handlebars provides the power necessary to let users build semantic templates. From 4.0.0 until 4.7.10, Handlebars.compile() and Handlebars.precompile() accept pre-parsed AST objects while validating only selected PathExpression, NumberLiteral, and BooleanLiteral values. This issue bypasses the AST validation introduced in version 4.7.9 for CVE-2026-33937. An attacker who can supply an object instead of a template string can place JavaScript expressions in unchecked values such as Program.blockParams.length, a non-PathExpression parameter depth, a non-string StringLiteral.value, or a non-string PathExpression.original. The compiler emits those values into generated JavaScript, causing code execution in the server process when compile output renders or wherever precompile output is loaded. Applications that pass only template strings are not affected. This issue is fixed in version 4.7.10.

Products
node-handlebars
Affected 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
Fixed versions
3:4.7.10-1
CVEs
CVE-2026-106446
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 02:30 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-106446

core-osv · Original source

Published 6 Oct 2026, 20:17 UTC

Handlebars provides the power necessary to let users build semantic templates. From 4.0.0 until 4.7.10, Handlebars.compile() and Handlebars.precompile() accept pre-parsed AST objects while validating only selected PathExpression, NumberLiteral, and BooleanLiteral values. This issue bypasses the AST validation introduced in version 4.7.9 for CVE-2026-33937. An attacker who can supply an object instead of a template string can place JavaScript expressions in unchecked values such as Program.blockParams.length, a non-PathExpression parameter depth, a non-string StringLiteral.value, or a non-string PathExpression.original. The compiler emits those values into generated JavaScript, causing code execution in the server process when compile output renders or wherever precompile output is loaded. Applications that pass only template strings are not affected. This issue is fixed in version 4.7.10.

osv:DEBIAN-CVE-2026-106446

node-handlebars

Fixed versions: Not specified

node-handlebars

Fixed versions: Not specified

node-handlebars

Fixed versions: 3:4.7.10-1

Complete source record
{
  "id": "88e02d02efa7ac2643e28d7ee9d9da555d0f458e69d49d7b0a5d7917eb496baa",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-106446",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-106446",
    "summary": "Handlebars provides the power necessary to let users build semantic templates. From 4.0.0 until 4.7.10, Handlebars.compile() and Handlebars.precompile() accept pre-parsed AST objects while validating only selected PathExpression, NumberLiteral, and BooleanLiteral values. This issue bypasses the AST validation introduced in version 4.7.9 for CVE-2026-33937. An attacker who can supply an object instead of a template string can place JavaScript expressions in unchecked values such as Program.blockParams.length, a non-PathExpression parameter depth, a non-string StringLiteral.value, or a non-string PathExpression.original. The compiler emits those values into generated JavaScript, causing code execution in the server process when compile output renders or wherever precompile output is loaded. Applications that pass only template strings are not affected. This issue is fixed in version 4.7.10.",
    "evidence": "osv:DEBIAN-CVE-2026-106446",
    "products": [
      {
        "name": {
          "value": "node-handlebars",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3:4.7.10-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3:4.7.7+~4.1.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3:4.7.9-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3:4.7.9-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3:4.7.9-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3:4.7.9-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3:4.7.9-5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3:4.7.9-6",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-handlebars",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3:4.7.10-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3:4.7.7+~4.1.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3:4.7.9-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3:4.7.9-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3:4.7.9-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3:4.7.9-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3:4.7.9-5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3:4.7.9-6",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-handlebars",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3:4.7.10-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3:4.7.7+~4.1.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3:4.7.9-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3:4.7.9-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3:4.7.9-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3:4.7.9-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3:4.7.9-5",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3:4.7.9-6",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2026-106446",
      "aliases": [
        "DEBIAN-CVE-2026-106446"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-handlebars",
            "purl": "pkg:deb/debian/node-handlebars?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-106446.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-handlebars",
            "purl": "pkg:deb/debian/node-handlebars?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-106446.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3:4.7.10-1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-handlebars",
            "purl": "pkg:deb/debian/node-handlebars?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "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"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-106446.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-11T17:00:53.268202936Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-106446"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-106446"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-106446",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 287610,
  "published_at": "2026-10-06T20:17:26.43+00:00"
}