When the email template does not have an escape mechanism, the content filled in behind the scenes will be executed in which link.
When a mail template does not have an escape mechanism, what process will the content filled in by the backend be executed in? In the rendering phase that outputs it. The Joomla announcement in September 2026, CVE-2026-90918, describes this kind of defect: the HTML email template feature lacks an escape mechanism, leading to multiple extensions appearing with cross-site scripting vectors. It reminds us of something that is easily overlooked: the requirement for escaping output in templates does not matter whether it is email or web pages, any place where content is pieced together into HTML without an escape mechanism belongs to the same risk surface.
Is it the need for escaping or filtering?
This announcement evaluates the impact, severity, and probability of occurrence as moderate, affecting versions covering two series, and the solution is to upgrade. The key words in the original cause are "missing escaping mechanism." Escaping occurs on the output side, determining the form in which content is interpreted; filtering occurs on the input side, determining what content is allowed to enter. Both are often confused, but without the escaping template, even if the input side is strictly controlled, specific constructed content may still be interpreted as code when interpreted by browsers or email clients. To govern such problems, it is necessary to separate the two sides: the input side manages admission, and the output side manages the form; either side is incomplete without the other.
Why are the risks of email templates and web templates the same source?
Both eventually produce HTML and must pass the same checkpoint: dynamic content must be escaped before entering the tag. The difference lies only in the triggering scenario - the injection of web templates is executed when the viewer opens the page, and the injection of email templates is executed when the recipient's email client renders the email, the latter may also extend the attack to the browser session through links in the email. Therefore, the content filled in in the background functions such as email reminders should be handled at the same security level as the page content, rather than relaxing the requirements because 'it's just sending an email'.
What content sources need to be escaped?
At least three categories. The first is the background entry item: template text, footer, signature, these fields look like only administrators can write, but there are real scenarios such as administrator accounts being stolen and collaborators' permissions being misused, and this is a ready-made injection point.The content collected and synchronized: the source station was injected with malicious tags, and the collection side will bring it in unchanged. The third is user submitted content: comments, messages, forms, the parts displayed after the review are also to be escaped, and the review is for content compliance, not code form.For example, in AnQiCMS, the content security settings include means such as sensitive word filtering and keyword replacement, content review, etc., responsible for blocking non-compliant content before it is stored;The escape on the output side is another independent level, neither side can replace the other.
How to proceed with self-inspection and configuration order?
First look at the output side: Does the system's template engine default to escaping, are there any output writing methods that bypass escaping in custom templates, and are the dynamic fields in email templates processed according to context? Then look at the writing side: Are the rules for sensitive word filtering and content review comprehensive for all content sources, and is it possible for keyword replacement to introduce marked characters - replacement occurs on the writing side, and if the replacement word itself contains marked structures, it will also change the output form. Finally, confirm the version: This kind of fix for template escaping is usually released with the version, follow-up updates are the lowest cost action, and the affected version range in the announcement should be checked item by item against your own version.
Common questions
Ask: Should fields that only administrators can fill in also be worried about?Answer: Yes. The theft of administrator accounts and the abuse of collaborator permissions are all real scenarios; the value of output-side escaping is that it does not depend on the trust of the writer.
Ask: Does plain text email also have this problem?Answer: The risk is mainly in the HTML rendering process; but the same template system often serves two formats at the same time, and it is most convenient to handle them with a unified escaping policy.
Ask: What can be done in terms of configuration besides the upgrade?Answer: Tighten template editing permissions, investigate all custom template output write-ups that bypass escaping, and confirm that content review and replacement rules will not introduce marker characters.