{"answers":{"affected":"4 open source packages ship an affected version, including handlebars. It affects 1 product.","exploited":"There is no known exploitation of CVE-2019-20920 in the wild and no public exploit code.","fix":"Upgrade handlebars to a fixed version for your release line: 3.0.8 or 4.5.3.","what":"CVE-2019-20920 is a high-severity vulnerability in n/a, published on 30 Sep 2020."},"fix_prompt":"Check this codebase for CVE-2019-20920 and fix it if it is affected.\n\nWhat it is: CVE-2019-20920 is a high-severity vulnerability in n/a, published on 30 Sep 2020. \nExploitation: There is no known exploitation of CVE-2019-20920 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- handlebars (npm): affected all versions; fixed in 3.0.8\n- handlebars (npm): affected all versions; fixed in 3.0.8\n- handlebars (npm): affected from 4.0.0; fixed in 4.5.3\n- handlebars (npm): affected from 4.0.0; fixed in 4.5.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-20920/ (Markdown: https://insights.sbomify.com/CVE-2019-20920/index.md)","id":"CVE-2019-20920","markdown":"https://insights.sbomify.com/CVE-2019-20920/index.md","name":"CVE-2019-20920","record":{"aliases":["DEBIAN-CVE-2019-20920","GHSA-3cqr-58rm-57f8","MINI-446m-rr6q-r26p","ROOT-APP-NPM-CVE-2019-20920","SNYK-JS-HANDLEBARS-534478","UBUNTU-CVE-2019-20920"],"analysis":null,"analysis_generated_by":null,"assigner":"mitre","cpe":[{"product":"handlebars","vendor":"handlebarsjs"}],"cvss":{"score":8.1,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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).","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Arbitrary Code Execution in Handlebars","id":"CVE-2019-20920","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2019"},"n_packages":4,"n_references":3,"next":{"headline":"Cross-site scripting in bootstrap-select","id":"CVE-2019-20921"},"packages":[{"ecosystem":"npm","fixed":["3.0.8"],"introduced":["0"],"last_affected":[],"package":"handlebars","purl":null,"source":"GHSA-3cqr-58rm-57f8"},{"ecosystem":"npm","fixed":["3.0.8"],"introduced":["0"],"last_affected":[],"package":"handlebars","purl":"pkg:npm/handlebars","source":"GHSA-3cqr-58rm-57f8"},{"ecosystem":"npm","fixed":["4.5.3"],"introduced":["4.0.0"],"last_affected":[],"package":"handlebars","purl":null,"source":"GHSA-3cqr-58rm-57f8"},{"ecosystem":"npm","fixed":["4.5.3"],"introduced":["4.0.0"],"last_affected":[],"package":"handlebars","purl":"pkg:npm/handlebars","source":"GHSA-3cqr-58rm-57f8"}],"prev":{"headline":"Null dereference in n/a","id":"CVE-2019-20919"},"products":["n/a"],"published":"2020-09-30","related":[{"cvss_score":9.8,"headline":"Handlebars.js has JavaScript Injection via AST Type Confusion","id":"CVE-2026-33937","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":8.3,"headline":"Handlebars.js has JavaScript Injection in CLI Precompiler via Unescaped Names and Options","id":"CVE-2026-33941","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":8.1,"headline":"Handlebars.js has JavaScript Injection via AST Type Confusion by tampering @partial-block","id":"CVE-2026-33938","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":8.1,"headline":"Handlebars.js has JavaScript Injection via AST Type Confusion when passing an object as dynamic partial","id":"CVE-2026-33940","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":7.5,"headline":"Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation","id":"CVE-2026-33939","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":7.5,"headline":"Regular Expression Denial of Service in Handlebars","id":"CVE-2019-20922","kev_date_added":null,"published":"2020-09-30"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["n/a"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2019-20920/"}