{"id":"CVE-2024-45390","state":"PUBLISHED","title":"@blakeembrey/template vulnerable to code injection when attacker controls template input","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.","publishedAt":"2024-09-03T19:37:31.763Z","updatedAt":"2024-09-03T20:01:40.797Z","severity":{"score":7.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["blakeembrey js-template"],"affected":[{"vendor":"blakeembrey","product":"js-template","versions":[{"version":"< 1.2.0","status":"affected"}]}],"references":["https://github.com/blakeembrey/js-template/security/advisories/GHSA-q765-wm9j-66qj","https://github.com/blakeembrey/js-template/commit/b8d9aa999e464816c6cfb14acd1ad0f5d1e335aa"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/45xxx/CVE-2024-45390.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-45390","state":"PUBLISHED","datePublished":"2024-09-03T19:37:31.763Z","dateUpdated":"2024-09-03T20:01:40.797Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-08-28T20:21:32.801Z"},"containers":{"cna":{"title":"@blakeembrey/template vulnerable to code injection when attacker controls template input","descriptions":[{"lang":"en","value":"@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."}],"affected":[{"vendor":"blakeembrey","product":"js-template","versions":[{"version":"< 1.2.0","status":"affected"}]}],"references":[{"url":"https://github.com/blakeembrey/js-template/security/advisories/GHSA-q765-wm9j-66qj","name":"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","name":"https://github.com/blakeembrey/js-template/commit/b8d9aa999e464816c6cfb14acd1ad0f5d1e335aa","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.3,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-09-03T19:37:31.763Z"},"source":{"advisory":"GHSA-q765-wm9j-66qj","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"blakeembrey","product":"js-template","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"1.2.0","versionType":"custom"}],"cpes":["cpe:2.3:a:blakeembrey:js-template:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-03T19:59:11.259079Z","id":"CVE-2024-45390","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-03T20:01:40.797Z"}}]}}}