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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/blakeembrey/js-template/security/advisories/GHSA-q765-wm9j-66qj vendor-advisory
- https://github.com/blakeembrey/js-template/commit/b8d9aa999e464816c6cfb14acd1ad0f5d1e335aa patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product