CVE-2019-20920
No exploitation reported by the sources we read.
- Published2020-09-30
- Fixed in4.5.3 · 3.0.8
- WeaknessCWE-94
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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).
Timeline
dates in UTC- 2020-09-3018:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.x | ≥ 4.0.0, < 4.5.3 | 4.5.3 | NVD · OSV |
| 3.0 | < 3.0.8 | 3.0.8 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- @rootio/handlebarsRoot:npmall versions · fixed in 3.0.7-root.io.3
- @rootio/handlebarsRoot:npmall versions · fixed in 3.0.3-root.io.2
- @rootio/handlebarsRoot:npmall versions · fixed in 3.0.8-root.io.1
- @rootio/handlebarsRoot:npmall versions · fixed in 3.0.8-root.io.2
- code-serverWolfiall versions · fixed in 0and 1 other package
- code-serverChainguardall versions · fixed in 0and 65 other packages
- commercial-gitlab-rails-ee-assets-19.1Chainguardall versions · no fixed version listedand 3 other packages
- gitlab-rails-19.1MinimOSall versions · fixed in 0
15 more package ranges on OSV.dev
Vendor advisories
nodejs-handlebars: lookup helper fails to properly validate templates allowing for arbitrary JavaScript execution
servicemesh-grafana as a component of OpenShift Service Mesh 1 · servicemesh-grafana-prometheus as a component of OpenShift Service Mesh 1 · servicemesh-grafana.src as a component of OpenShift Service Mesh 1 · +6 more
Red Hat Security Advisory: Red Hat Process Automation Manager 7.13.2 security update
Red Hat Security Advisory: Red Hat Quay v3.6.0 security, bug fix and enhancement update
Red Hat Security Advisory: Red Hat OpenShift Enterprise security and bug fix update
Red Hat Security Advisory: Red Hat Virtualization security, bug fix, and enhancement update
Fix
- Update Handlebarsjs handlebars to 4.5.3 · 3.0.8
- Vendor fix Red Hat Product Security RHSA-2023:1334 · 1 productFor on-premise installations, before applying the update, back up your existing installation including all applications, configuration files, databases and database settings, and so on. Red Hat recommends that you halt the server by stopping the JBoss Application Server process before installing t…
- Vendor fix Red Hat Product Security RHSA-2021:3917 · 1 productFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2021:2500 · 3 productsFor OpenShift Container Platform 4.6 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.6/release_notes/ocp-4-6-r…
- Vendor fix Red Hat Product Security RHSA-2020:5179 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/2974891
- No fix planned, says the vendor Red Hat Product Security CVE-2019-20920 · 9 productsWill not fix
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2026-10-08
- NVDCVSS 3.18.1read 2026-10-23
- NVDCVSS 2.06.8read 2026-10-23
- NVDweakness (CWE)CWE-94read 2026-10-23
- FIRST EPSSEPSS score3.2 %2026-11-08
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2021-04-22
Identifiers
- CGA-224h-rvm5-q534same flawChainguard · CC-BY-NC-ND-4.0
- CGA-22fp-g88w-8jx8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2c9h-xqgf-fcf7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2f9x-x2g6-px9rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2g96-2xhp-q64wsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2j82-532g-xm9vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2pjg-m7vq-g4qxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2qr5-q6jw-r4wfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2xgm-v9mp-3hc9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-349g-v98w-fv45same flawChainguard · CC-BY-NC-ND-4.0
- CGA-34rr-m8pj-863jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-35x6-77rf-gr35same flawChainguard · CC-BY-NC-ND-4.0
- CGA-39x7-3v4x-7r6psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3fm9-grx3-h7m6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3m5g-p4wv-ph35same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3p35-38fw-53jmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3w2p-mv9m-3r29same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3x43-qr58-chm2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-43qf-j8mr-2wcwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-477j-6hw2-m3qfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-47h8-vjg9-q8h6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-47q9-c3j7-pgg3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4c96-r3pm-fpc8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4hp4-374h-x5xhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4mm7-vxg8-7ggwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4v8r-7vfg-r5r6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4x65-mpr6-wmxrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-54fg-f5pw-2j92same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5745-qjmf-g6jwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-57g5-q4cj-rfpgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5fm9-5g4f-w2vgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5gx3-jf3c-684rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5m9x-pfp2-vcc8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5mjf-qxwg-w9rvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-64rx-4482-8h4gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-66c4-h53x-rxx4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-675g-xrqc-j7hgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-682q-83rf-hg43same flawChainguard · CC-BY-NC-ND-4.0
- CGA-684h-pw4c-68f7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-69mc-r33p-77c8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6hfm-gj5w-x568same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7253-3xwg-xp5xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-796w-xq7c-7xhpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7cjp-m867-mv72same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7mx6-c48m-hg86same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7p65-wc9v-6hf7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-7vq8-mf65-2x9rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7w36-93cj-8cgwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7xpp-x639-w2rmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8646-3c8g-8x4vsame flawChainguard · CC-BY-NC-ND-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L
- Published
- 2020-09-30
- Last Modified
- 2026-10-08
- NVD status
- Modified
- GitHub Advisory
- GHSA-3cqr-58rm-57f8
Frequently asked questions
What is CVE-2019-20920?
Is CVE-2019-20920 actively exploited?
What is the CVSS score for CVE-2019-20920?
Running handlebars? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-3cqr-58rm-57f8
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0