AWS Virtual Engineering Workbench processes a CloudFormation template body as a Jinja2 template in its publishing component. An authenticated user who can create or update a product version can submit Jinja2 expressions or template directives through the product versioning API; under the default authorization policy, this permission is associated with the PRODUCT_CONTRIBUTOR role in a project. When an AMI-based product is published, the template is rendered in the publishing Lambda, and vulnerable versions allow Jinja2 expressions to execute with the permissions of that Lambda's IAM role. This is CWE-1336, because special template-engine elements are not properly neutralized; the specific IAM permissions available to the Lambda are not fully documented, so the practical resource scope depends on each deployment's policy. The patch is described as rejecting the Jinja2 control sequences {{, {%, {# and rendering templates in a Jinja2 sandboxed environment.