CVE-2024-45390

@blakeembrey/template vulnerable to code injection when attacker controls template input

Published Sep 3, 2024 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-2852 @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.
Github GHSA Github GHSA GHSA-q765-wm9j-66qj @blakeembrey/template vulnerable to code injection when attacker controls template input
History
Type Values Removed Values Added
First Time appeared Blakeembrey template
CPEs cpe:2.3:a:blakeembrey:template:*:*:*:*:*:node.js:*:*
Vendors & Products Blakeembrey template
Type Values Removed Values Added
First Time appeared Blakeembrey
Blakeembrey js-template
CPEs cpe:2.3:a:blakeembrey:js-template:*:*:*:*:*:*:*:*
Vendors & Products Blakeembrey
Blakeembrey js-template
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title @blakeembrey/template vulnerable to code injection when attacker controls template input
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 3, 2024, 8:01 PM
Reserved
Aug 28, 2024, 8:21 PM
Status
Analyzed
Published
Sep 3, 2024, 8:15 PM
Modified
Jun 17, 2026, 7:54 AM