{"cve":"CVE-2024-45390","nvd":{"published":"2024-09-03T20:15:08.423","modified":"2026-06-17T07:54:07.320","status":"Analyzed","description":"@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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-94"],"references":["https://github.com/blakeembrey/js-template/commit/b8d9aa999e464816c6cfb14acd1ad0f5d1e335aa","https://github.com/blakeembrey/js-template/security/advisories/GHSA-q765-wm9j-66qj"],"products":["blakeembrey:template"],"source":"nvd","synced_at":"2026-10-19T21:54:16.205165117+00:00"},"epss":{"cve":"CVE-2024-45390","score":0.00433,"percentile":0.37662,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-q765-wm9j-66qj","url":"https://osv.dev/vulnerability/GHSA-q765-wm9j-66qj","summary":"@blakeembrey/template vulnerable to code injection when attacker controls template input","modified":"2024-11-18T16:27:09Z","packages":[{"ecosystem":"npm","name":"@blakeembrey/template","purl":"pkg:npm/%40blakeembrey/template","ranges":["<1.2.0"],"fixed":["1.2.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}