Skip to content

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

CriticalCVSS 9.8 EPSS 0.43%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

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.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
blakeembrey @blakeembrey/template < 1.2.0 1.2.0 Fixed
blakeembrey @blakeembrey/template(npm) < 1.2.0 1.2.0 Fixed
blakeembrey js-template < 1.2.0; = < 1.2.0 1.2.0 Fixed

Affected products

ProductAffected versionsFixed in
blakeembrey @blakeembrey/template(npm) < 1.2.0 1.2.0
blakeembrey js-template = < 1.2.0 No fix listed
blakeembrey js-template < 1.2.0 1.2.0
blakeembrey @blakeembrey/template < 1.2.0 1.2.0

References