Skip to main content
← All vulnerabilities
CVE-2024-45390GHSA-Q765-WM9J-66QJ

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.2.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • blakeembrey js-template

    fixed in 1.2.0

  • @blakeembrey/templatenpm

    fixed in 1.2.0

References 2

GitHub · blakeembrey/js-template