{"id":"CVE-2024-45390","published":"2024-09-03T19:37:31Z","modified":"2024-09-03T20:01:40Z","title":"@blakeembrey/template vulnerable to code injection when attacker controls template input","vendor":"blakeembrey","product":"js-template","tier":"tail","description":{"text":"@blakeembrey/template is a string template library. Prior to version 1.2.0, it is possible to inject and run code within the template if the attacker has access to write the template name. Version 1.2.0 contains a patch. As a workaround, don't pass untrusted input as the template display name, or don't use the display name feature.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00807,"percentile":0.53677,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/blakeembrey/js-template/security/advisories/GHSA-q765-wm9j-66qj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/blakeembrey/js-template/commit/b8d9aa999e464816c6cfb14acd1ad0f5d1e335aa","tags":["x_refsource_MISC"]}],"priority":{"score":15.8,"factors":[{"name":"EPSS percentile","points":10.74},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"blakeembrey","affectedVersions":[{"vendor":"blakeembrey","product":"js-template","versions":["< 1.2.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-03T19:59:11.259079Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@blakeembrey/template","vulnerableRanges":["<1.2.0"],"patched":["1.2.0"],"from":["GHSA-q765-wm9j-66qj"],"provenance":"source"}],"summary":{"text":"The @blakeembrey/template string template library (product js-template) contains a code injection flaw in its template display name handling, affecting versions prior to 1.2.0. An attacker able to write the template name can inject and execute code within the template, with no authentication or user interaction required and network access as the attack vector.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:35Z"},"euvd":{"id":"EUVD-2024-2852","exploited":false,"provenance":"source"}}