@blakeembrey/template vulnerable to code injection when attacker controls template input
Moderate severity
GitHub Reviewed
Published
Sep 3, 2024
in
blakeembrey/js-template
•
Updated Nov 18, 2024
Description
Published to the GitHub Advisory Database
Sep 3, 2024
Reviewed
Sep 3, 2024
Published by the National Vulnerability Database
Sep 3, 2024
Last updated
Nov 18, 2024
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 blakeembrey/js-template@b8d9aa9.
References