# CVE-2024-45390: @blakeembrey/template vulnerable to code injection when attacker controls template input

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2024-09-03T19:37:31.763Z
- Modified: 2026-06-17T07:54:07.320Z
- Also known as: GHSA-q765-wm9j-66qj
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- blakeembrey js-template: < 1.2.0; before 1.2.0
- @blakeembrey/template (npm): before 1.2.0
- blakeembrey template: before 1.2.0

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 7.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/blakeembrey/js-template/security/advisories/GHSA-q765-wm9j-66qj> (vendor-advisory, web)
- <https://github.com/blakeembrey/js-template/commit/b8d9aa999e464816c6cfb14acd1ad0f5d1e335aa> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45390> (advisory)
- <https://github.com/blakeembrey/js-template> (package)

## Sources

- CVE List: [CVE-2024-45390](https://www.cve.org/CVERecord?id=CVE-2024-45390), CVE Terms of Use, modified 2024-09-03
- GitHub Advisory Database: [GHSA-q765-wm9j-66qj](https://github.com/advisories/GHSA-q765-wm9j-66qj), CC-BY-4.0, modified 2024-11-18
- NVD: [CVE-2024-45390](https://nvd.nist.gov/vuln/detail/CVE-2024-45390), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45390 · Whole record: https://cve.day/CVE-2024-45390.json · Rebuilt by cve.day 2026-11-25T22:58:45.022Z
