Typemill Reflected Cross-Site Scripting Vulnerability in Login Error View

Vulnerability

A reflected Cross-Site Scripting (XSS) vulnerability has been identified in Typemill, a flat-file, Markdown-based CMS, in versions prior to 2.19.2. The issue resides in the login error view template, 'login.twig', where the 'username' value is echoed back without proper contextual encoding when authentication fails. This allows an attacker to execute scripts in the context of the login page.

Impact

Exploitation of this vulnerability allows for reflected Cross-Site Scripting, where an attacker can execute scripts in the victim's browser session.

Reproduction

To reproduce this vulnerability, send a POST request to the '/tm/login' endpoint with 'username' parameter containing a script payload, such as an alert script, and 'password' set to an incorrect value. The injected script will be executed in the context of the login page.

Remediation

Users are advised to update to Typemill version 2.19.2, where this vulnerability has been fixed. Additionally, ensure strict output encoding in the login process and sanitize any admin-accessible fields that are rendered as HTML.

Added: Jan 23, 2026, 11:19 PM
Updated: Jan 23, 2026, 11:19 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
1.7
exploitability
8.2
remediation
7.7
relevance
2.3
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.