CWE•Base•Incomplete•20 recent CVEs
CWE-1336Improper Neutralization of Special Elements Used in a Template Engine
Description
The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.
[object Object]
Common consequences
- Integrity→Execute Unauthorized Code or CommandsIf an attacker can influence input into a template before it is processed, then the attacker can invoke arbitrary expressions, i.e. perform injection attacks. For example, in some template languages, an attacker could inject the expression
Potential mitigations
- Architecture and DesignChoose a template engine that offers a sandbox or restricted mode, or at least limits the power of any available expressions, function calls, or commands.
- ImplementationUse the template engine's sandbox or restricted mode, if available.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-1188037.52026-10-28CVE-2026-1152234.92026-10-28CVE-2026-1151898.82026-10-26CVE-2026-1159388.82026-10-23CVE-2026-554869.32026-10-23CVE-2026-963923.52026-10-22CVE-2026-963559.12026-10-22CVE-2026-781648.22026-10-19CVE-2026-552409.12026-10-15CVE-2026-929828.52026-10-15CVE-2026-1054742026-10-15CVE-2026-1105935.42026-10-14CVE-2026-10384910.02026-10-13CVE-2026-1096528.82026-10-12CVE-2026-1093058.82026-10-12CVE-2026-1072488.82026-10-12CVE-2026-1035375.42026-10-12CVE-2026-1035285.42026-10-12CVE-2026-1085706.32026-10-11CVE-2026-1082649.12026-10-09