CVE-2024-45390
published high CVSS 3.1 · 7.3@blakeembrey/template vulnerable to code injection when attacker controls template input
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| blakeembrey | js-template | < 1.2.0 (affected) | GitHub_M · cna |
| blakeembrey | js-template | 0 to < 1.2.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
2Provider assertions
2GitHub_M · cna
@blakeembrey/template vulnerable to code injection when attacker controls template input
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6230f7572c2748e27ba2d7da565ddd9416d10ac4d23c5d11b0d56b3bd6ad6fad
- Ingested
- 23 Sep 2026, 08:27:47 UTC
- Source record
- Official CVE record