{"answers":{"affected":"6 open source packages ship an affected version, including handlebars and bootstrap-wysihtml5-rails. It affects 2 products.","exploited":"There is no known exploitation of CVE-2019-19919 in the wild and no public exploit code.","fix":"Upgrade handlebars to a fixed version for your release line: 3.0.8 or 4.3.0.","what":"CVE-2019-19919 is a critical code injection vulnerability in n/a, published on 20 Dec 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-19919 and fix it if it is affected.\n\nWhat it is: CVE-2019-19919 is a critical code injection vulnerability in n/a, published on 20 Dec 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2019-19919 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.3.0\n- handlebars (npm): affected from 4.0.0; fixed in 4.3.0\n- bootstrap-wysihtml5-rails (RubyGems): affected from 0.3.3.5 up to 0.3.3.8; no fix listed\n- bootstrap-wysihtml5-rails (RubyGems): affected from 0.3.3.5 up to 0.3.3.8; no fix listed\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-19919/ (Markdown: https://insights.sbomify.com/CVE-2019-19919/index.md)","id":"CVE-2019-19919","markdown":"https://insights.sbomify.com/CVE-2019-19919/index.md","name":"CVE-2019-19919","record":{"aliases":["DEBIAN-CVE-2019-19919","GHSA-w457-6q6x-cgp9","MINI-7qwq-2gxf-8262","MINI-8h6q-4jm9-qf24","ROOT-APP-NPM-CVE-2019-19919","UBUNTU-CVE-2019-19919"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript templating library","requires_auth":"none","summary":"Attackers can execute arbitrary code via prototype pollution in Handlebars templates, affecting applications using the library.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"handlebars.js","vendor":"handlebars.js_project"},{"product":"tenable.sc","vendor":"tenable"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"description":"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.","ecosystems":["RubyGems","npm"],"exploits":{"exploitdb":0,"first_seen":"2024-10-19","github_poc":1,"max_poc_stars":6,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-10-19T11:05:45Z","kind":"github_poc","ref":"https://github.com/fazilbaig1/CVE-2019-19919","stars":6,"title":"Handlebars Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Vulnerability"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Prototype Pollution in handlebars","id":"CVE-2019-19919","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"code_injection","year":"2019"},"n_packages":6,"n_references":2,"next":{"headline":"Code injection in n/a","id":"CVE-2019-19920"},"packages":[{"ecosystem":"RubyGems","fixed":[],"introduced":["0.3.3.5"],"last_affected":["0.3.3.8"],"package":"bootstrap-wysihtml5-rails","purl":null,"source":"GHSA-w457-6q6x-cgp9"},{"ecosystem":"RubyGems","fixed":[],"introduced":["0.3.3.5"],"last_affected":["0.3.3.8"],"package":"bootstrap-wysihtml5-rails","purl":"pkg:gem/bootstrap-wysihtml5-rails","source":"GHSA-w457-6q6x-cgp9"},{"ecosystem":"npm","fixed":["3.0.8"],"introduced":["0"],"last_affected":[],"package":"handlebars","purl":null,"source":"GHSA-w457-6q6x-cgp9"},{"ecosystem":"npm","fixed":["3.0.8"],"introduced":["0"],"last_affected":[],"package":"handlebars","purl":"pkg:npm/handlebars","source":"GHSA-w457-6q6x-cgp9"},{"ecosystem":"npm","fixed":["4.3.0"],"introduced":["4.0.0"],"last_affected":[],"package":"handlebars","purl":null,"source":"GHSA-w457-6q6x-cgp9"},{"ecosystem":"npm","fixed":["4.3.0"],"introduced":["4.0.0"],"last_affected":[],"package":"handlebars","purl":"pkg:npm/handlebars","source":"GHSA-w457-6q6x-cgp9"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2019-19918"},"products":["n/a"],"published":"2019-12-20","related":[{"cvss_score":6.1,"headline":"Cross-Site Scripting in handlebars","id":"CVE-2015-8861","kev_date_added":null,"published":"2017-01-23"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code via prototype pollution in Handlebars templates, affecting applications using the library.","url":"https://insights.sbomify.com/CVE-2019-19919/"}