Skip to content
OpenAdvisories
High · 7.3 CVE-2024-45390 EUVD-2024-2852GHSA-q765-wm9j-66qj

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

Published Sep 3, 2024 · Updated Sep 3, 2024 · 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.

Affected products

VendorProductAffectedFixed
blakeembrey js-template < 1.2.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @blakeembrey/template < 1.2.0 1.2.0 GHSA-q765-wm9j-66qj

References