CVE-2019-19919
Prototype Pollution in handlebars
Reported by mitre · Published December 20, 2019
handlebars is fixed in 4.3.0 and 3.0.8 (npm)
Versions of handlebars prior to 4.3.0 are vulnerable to Prototype Pollution leading to Remote Code Execution. Templates may alter an Object's __proto__ and __defineGetter__ properties, which may allow an attacker to execute arbitrary code through crafted payloads.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| handlebars | npm | 4.3.0, 3.0.8 |
| bootstrap-wysihtml5-rails | RubyGems | 0.3.3.8 |
| tenable.sc | tenable | 5.19.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| chainguard | gitlab-rails-ce-19.4 | * |
| chainguard | gitlab-rails-ce-fips-18.7 | * |
| chainguard | gitlab-rails-ce-fips-18.11 | * |
| chainguard | gitlab-rails-ce-19.5 | * |
| chainguard | gitlab-rails-ee-fips-17.6 | * |
| chainguard | gitlab-rails-ee-17.2 | * |
| chainguard | gitlab-rails-ce-fips-18.4 | * |
| chainguard | commercial-gitlab-rails-ee-fips-19.3 | * |
| chainguard | gitlab-rails-ee-17.6 | * |
| chainguard | gitlab-rails-ce-fips-18.2 | * |
| chainguard | gitlab-rails-ee-fips-17.4 | * |
| chainguard | gitlab-rails-ce-fips-19.2 | * |
| chainguard | code-server | * |
| chainguard | gitlab-rails-ee-fips-17.8 | * |
| chainguard | gitlab-rails-ce-19.2 | * |
| chainguard | gitlab-rails-ce-18.5 | * |
| chainguard | commercial-gitlab-rails-ee-19.3 | * |
| chainguard | gitlab-rails-ce-18.2 | * |
| chainguard | gitlab-rails-ce-18.11 | * |
…and 45 more
Timeline
- Dec 20, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Oct 21, 2023 PoC Published
- Nov 27, 2023 CVE Updated
- Mar 9, 2026 Security Advisory
- Sep 12, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-19919
vulnetix vdb fixes CVE-2019-19919
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-19919/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2019-19919 advisory
- https://github.com/wycats/handlebars.js/issues/1558 url
- https://github.com/wycats/handlebars.js/commit/2078c727c627f25d4a149962f05c1e069beb18bc patch
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19919 advisory
- https://github.com/handlebars-lang/handlebars.js/commit/156061eb7707575293613d7fdf90e2bdaac029ee patch
- https://github.com/handlebars-lang/handlebars.js/commit/90ad8d97ad2933852fb83fcc054699dc99e094db patch
- https://github.com/Nerian/bootstrap-wysihtml5-rails/blob/master/vendor/assets/javascripts/bootstrap-wysihtml5/handlebars.runtime.min.js url
- https://github.com/Nerian/bootstrap-wysihtml5-rails/tree/master/vendor/assets/javascripts/bootstrap-wysihtml5 url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-wysihtml5-rails/CVE-2019-19919.yml advisory
- https://github.com/advisories/GHSA-w457-6q6x-cgp9 advisory