CVE-2019-20920

NameCVE-2019-20920
DescriptionHandlebars 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).
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libjs-handlebars (PTS)jessie1.3.0-1vulnerable
stretch3:4.0.5-4vulnerable
node-handlebars (PTS)buster3:4.1.0-1+deb10u3fixed
bullseye3:4.7.6+~4.1.0-2fixed
sid, trixie, bookworm3:4.7.7+~4.1.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libjs-handlebarssource(unstable)(unfixed)
node-handlebarssourcebuster3:4.1.0-1+deb10u3
node-handlebarssource(unstable)3:4.5.3-1

Notes

[stretch] - libjs-handlebars <ignored> (Only reverse depends was diaspora which not in stretch and too intrusive to backport)
https://snyk.io/vuln/SNYK-JS-HANDLEBARS-534478
https://www.npmjs.com/advisories/1316
https://www.npmjs.com/advisories/1324
[jessie] - libjs-handlebars <ignored> (Minor issue and too intrusive to backport)

Search for package or bug name: Reporting problems