Medium, CVSS 6.9npmAmendedPublished
@blakeembrey/template vulnerable to code injection when attacker controls template input
CVE-2024-45390 · GHSA-q765-wm9j-66qj
- Affected
- npm @blakeembrey/template < 1.2.0
- Fixed in
- 1.2.0· Vendor fix available
- Issue
- Impact It is possible to inject and run code within the template if the attacker has access to write the template name. Patches Upgrade to 1.2.0. Workarounds Don't pass untrusted input as the template display name, or don't use the display name feature. References Fixed by removing in https://github.com/blakeembrey/js-template/commit/b8d9aa999e464816c6cfb14acd1ad0f5d1e335aa.
Recommended action: Upgrade to 1.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.