Skip to content
Heist/ feed
Back to feed
Medium

node-handlebars, ruby-handlebars-assets — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-106444

Handlebars provides the power necessary to let users build semantic templates. From 4.0.0 until 4.7.10, Handlebars.precompile() uses quotedString() in lib/handlebars/compiler/code-gen.js to emit static template text into generated JavaScript without escaping sequences that terminate an enclosing HTML script element. When an application precompiles attacker-controlled template text and embeds the generated source directly in an inline script element, a closing script delimiter can end the element and cause following attacker-controlled markup to be parsed and executed. Ordinary server-side rendering and precompiled templates served as external JavaScript files are not affected. This issue is fixed in version 4.7.10.

Products
node-handlebars, ruby-handlebars-assets
Affected versions
0.15-2, 2:0.20.2-2, 2:0.21.0-2, 2:0.21.0-3, 2:0.21.0-4, 2:0.21.0-5, 2:0.23.1-1, 2:0.23.2+dfsg-2, 2:0.23.2-2, 2:0.23.3+dfsg-2, 2:0.23.8+dfsg-3, 2:0.23.8+dfsg-4, 2:0.23.9+dfsg-1, 3:4.0.10-5, 3:4.1.0-1, 3:4.5.3-1, 3:4.7.2-1, 3:4.7.6+~4.1.0-2, 3:4.7.7+~4.1.0-1, 3:4.7.9-5
Fixed versions
Not specified
CVEs
CVE-2026-106444
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:58 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-106444

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.precompile() uses quotedString() in lib/handlebars/compiler/code-gen.js to emit static template text into generated JavaScript without escaping sequences that terminate an enclosing HTML script element. When an application precompiles attacker-controlled template text and embeds the generated source directly in an inline script element, a closing script delimiter can end the element and cause following attacker-controlled markup to be parsed and executed. Ordinary server-side rendering and precompiled templates served as external JavaScript files are not affected. This issue is fixed in version 4.7.10.

osv:UBUNTU-CVE-2026-106444

ruby-handlebars-assets

Fixed versions: Not specified

node-handlebars

Fixed versions: Not specified

ruby-handlebars-assets

Fixed versions: Not specified

node-handlebars

Fixed versions: Not specified

ruby-handlebars-assets

Fixed versions: Not specified

node-handlebars

Fixed versions: Not specified

ruby-handlebars-assets

Fixed versions: Not specified

node-handlebars

Fixed versions: Not specified

ruby-handlebars-assets

Fixed versions: Not specified

node-handlebars

Fixed versions: Not specified

node-handlebars

Fixed versions: Not specified

Complete source record
{
  "id": "18d6d25fe3ddc8b82de3fcaa2993605952c9b7cb19af82068feb7d4750e1f3ce",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-106444",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-106444",
    "summary": "Handlebars provides the power necessary to let users build semantic templates. From 4.0.0 until 4.7.10, Handlebars.precompile() uses quotedString() in lib/handlebars/compiler/code-gen.js to emit static template text into generated JavaScript without escaping sequences that terminate an enclosing HTML script element. When an application precompiles attacker-controlled template text and embeds the generated source directly in an inline script element, a closing script delimiter can end the element and cause following attacker-controlled markup to be parsed and executed. Ordinary server-side rendering and precompiled templates served as external JavaScript files are not affected. This issue is fixed in version 4.7.10.",
    "evidence": "osv:UBUNTU-CVE-2026-106444",
    "products": [
      {
        "name": {
          "value": "ruby-handlebars-assets",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.15-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:0.20.2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:0.21.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:0.21.0-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:0.21.0-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:0.21.0-5",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-handlebars",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3:4.0.10-5",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-handlebars-assets",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:0.23.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2:0.23.2-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2:0.23.2+dfsg-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-handlebars",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3:4.1.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3:4.5.3-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3:4.7.2-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-handlebars-assets",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:0.23.3+dfsg-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-handlebars",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3:4.7.6+~4.1.0-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3:4.7.7+~4.1.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-handlebars-assets",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:0.23.8+dfsg-3",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2:0.23.8+dfsg-4",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-handlebars",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3:4.7.7+~4.1.0-1",
            "evidence": "/affected/7/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-handlebars-assets",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2:0.23.9+dfsg-1",
            "evidence": "/affected/8/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-handlebars",
          "evidence": "/affected/9/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3:4.7.7+~4.1.0-1",
            "evidence": "/affected/9/versions"
          },
          {
            "value": "3:4.7.9-5",
            "evidence": "/affected/9/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-handlebars",
          "evidence": "/affected/10/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3:4.7.7+~4.1.0-1",
            "evidence": "/affected/10/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-106444",
      "aliases": [
        "UBUNTU-CVE-2026-106444"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-handlebars-assets",
            "purl": "pkg:deb/ubuntu/ruby-handlebars-assets?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "0.15-2",
            "2:0.20.2-2",
            "2:0.21.0-2",
            "2:0.21.0-3",
            "2:0.21.0-4",
            "2:0.21.0-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106444.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-handlebars",
                "binary_version": "2:0.21.0-5"
              },
              {
                "binary_name": "libjs-handlebars.runtime",
                "binary_version": "2:0.21.0-5"
              },
              {
                "binary_name": "ruby-handlebars-assets",
                "binary_version": "2:0.21.0-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-handlebars",
            "purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3:4.0.10-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106444.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "handlebars",
                "binary_version": "3:4.0.10-5"
              },
              {
                "binary_name": "libjs-handlebars",
                "binary_version": "3:4.0.10-5"
              },
              {
                "binary_name": "libjs-handlebars.runtime",
                "binary_version": "3:4.0.10-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-handlebars-assets",
            "purl": "pkg:deb/ubuntu/ruby-handlebars-assets?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2:0.23.1-1",
            "2:0.23.2-2",
            "2:0.23.2+dfsg-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106444.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-handlebars-assets",
                "binary_version": "2:0.23.2+dfsg-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-handlebars",
            "purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "3:4.1.0-1",
            "3:4.5.3-1",
            "3:4.7.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106444.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "handlebars",
                "binary_version": "3:4.7.2-1"
              },
              {
                "binary_name": "libjs-handlebars",
                "binary_version": "3:4.7.2-1"
              },
              {
                "binary_name": "libjs-handlebars.runtime",
                "binary_version": "3:4.7.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-handlebars-assets",
            "purl": "pkg:deb/ubuntu/ruby-handlebars-assets?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2:0.23.3+dfsg-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106444.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-handlebars-assets",
                "binary_version": "2:0.23.3+dfsg-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-handlebars",
            "purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "3:4.7.6+~4.1.0-2",
            "3:4.7.7+~4.1.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106444.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "handlebars",
                "binary_version": "3:4.7.7+~4.1.0-1"
              },
              {
                "binary_name": "libjs-handlebars",
                "binary_version": "3:4.7.7+~4.1.0-1"
              },
              {
                "binary_name": "libjs-handlebars.runtime",
                "binary_version": "3:4.7.7+~4.1.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-handlebars-assets",
            "purl": "pkg:deb/ubuntu/ruby-handlebars-assets?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2:0.23.8+dfsg-3",
            "2:0.23.8+dfsg-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106444.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-handlebars-assets",
                "binary_version": "2:0.23.8+dfsg-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-handlebars",
            "purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3:4.7.7+~4.1.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106444.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "handlebars",
                "binary_version": "3:4.7.7+~4.1.0-1"
              },
              {
                "binary_name": "libjs-handlebars",
                "binary_version": "3:4.7.7+~4.1.0-1"
              },
              {
                "binary_name": "libjs-handlebars.runtime",
                "binary_version": "3:4.7.7+~4.1.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-handlebars-assets",
            "purl": "pkg:deb/ubuntu/ruby-handlebars-assets?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2:0.23.9+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106444.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-handlebars-assets",
                "binary_version": "2:0.23.9+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-handlebars",
            "purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3:4.7.7+~4.1.0-1",
            "3:4.7.9-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106444.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "handlebars",
                "binary_version": "3:4.7.9-5"
              },
              {
                "binary_name": "libjs-handlebars",
                "binary_version": "3:4.7.9-5"
              },
              {
                "binary_name": "libjs-handlebars.runtime",
                "binary_version": "3:4.7.9-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-handlebars",
            "purl": "pkg:deb/ubuntu/node-handlebars?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "3:4.7.7+~4.1.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106444.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "handlebars",
                "binary_version": "3:4.7.7+~4.1.0-1"
              },
              {
                "binary_name": "libjs-handlebars",
                "binary_version": "3:4.7.7+~4.1.0-1"
              },
              {
                "binary_name": "libjs-handlebars.runtime",
                "binary_version": "3:4.7.7+~4.1.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:00.225302695Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-106444"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-106444",
        "https://www.cve.org/CVERecord?id=CVE-2026-106444",
        "https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-xw65-4hp5-5hc7",
        "https://github.com/handlebars-lang/handlebars.js/pull/2185"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-106444",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 357849,
  "published_at": "2026-10-06T20:17:00+00:00"
}