CVE catalog

CVE-2019-20920

Handlebars before 3.0.8 and 4.x before 4.5.3 is vulnerable to Arbitrary Code Execution. The lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbi

[CVE catalog]

Severity
High · CVSS 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L
Published
Updated
Source
[NVD] · [CVE record]
EPSS
3.15% · Oct 25, 2026

Handlebars before 3.0.8 and 4.x before 4.5.3 is vulnerable to Arbitrary Code Execution. The lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbitrary JavaScript. This can be used to run arbitrary code on a server processing Handlebars templates or in a victim's browser (effectively serving as XSS).

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-handlebarssid3:4.7.10-1fixed
Debiannode-handlebarsforky3:4.7.10-1fixed
Debiannode-handlebarstrixie3:4.7.7+~4.1.0-1fixed
Debiannode-handlebarsbookworm3:4.7.7+~4.1.0-1fixed
CpehandlebarsNot reported3.0.8fixed
CpehandlebarsNot reported4.5.3fixed
Ubuntunode-handlebars18.043:4.0.10-5vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-handlebarssourcesid3:4.5.3-1not yet assignedNot reportedNot reported
Debiannode-handlebarssourceforky3:4.5.3-1not yet assignedNot reportedNot reported
Debiannode-handlebarssourcetrixie3:4.5.3-1not yet assignedNot reportedNot reported
Debiannode-handlebarssourcebookworm3:4.5.3-1not yet assignedNot reportedNot reported
CpehandlebarscpeNot reported3.0.8Not reportedNVD-CVE-2019-20920Not reported
CpehandlebarscpeNot reported4.5.3Not reportedNVD-CVE-2019-20920Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [handlebars]Fixed

    Source package: [node-handlebars]

    Details (2)
    • 3:4.7.7+~4.1.0-1 · all · bookworm

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12

    • 3:4.7.7+~4.1.0-1 · all · bookworm

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12

  • Source package: [node-handlebars]

    Details (2)
    • 3:4.7.7+~4.1.0-1 · all · bookworm

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12

    • 3:4.7.7+~4.1.0-1 · all · bookworm

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12

  • Source package: [node-handlebars]

    Details (2)
    • 3:4.7.7+~4.1.0-1 · all · bookworm

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12

    • 3:4.7.7+~4.1.0-1 · all · bookworm

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12

[Debian 13 (Trixie)]

  • [handlebars]Fixed

    Source package: [node-handlebars]

    Details (2)
    • 3:4.7.7+~4.1.0-1 · all · trixie

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · 13

    • 3:4.7.7+~4.1.0-1 · all · trixie

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · 13

  • Source package: [node-handlebars]

    Details (2)
    • 3:4.7.7+~4.1.0-1 · all · trixie

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · 13

    • 3:4.7.7+~4.1.0-1 · all · trixie

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · 13

  • Source package: [node-handlebars]

    Details (2)
    • 3:4.7.7+~4.1.0-1 · all · trixie

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · 13

    • 3:4.7.7+~4.1.0-1 · all · trixie

      Fixed · Fixed: 3:4.5.3-1

      nvd · node-handlebars · debian · 13

Observed:

References