Vulnerability GHSA-qrfh-cc86-vc8c
Medium Risk
MEDIUM RISK
CVSS Score: 5.4
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
7 months ago
March 05, 2026 at 06:05 PM UTC
Leantime has HTML injection through firstname and lastname fields
2.0 - 3.3
2.0 - 3.3
Summary
Leantime has HTML injection through firstname and lastname fields
Details
Summary
Leantime v2.3.27 is vulnerable to Stored HTML Injection. The firstname and lastname fields in the admin user edit page are rendered without HTML escaping, allowing an authenticated user to inject arbitrary HTML that executes when the profile is viewed.
Vulnerable File
app/Domain/Users/Templates/editUser.tpl.php
Vulnerable Code (Lines ~14-17)
value="<?php echo $values['firstname'] ?>"
value="<?php echo $values['lastname'] ?>"
These fields output raw user input without sanitization.
Steps to Reproduce
- Login as admin > Go to Settings > Users > Edit any user
- Enter HTML payload in First Name or Last Name field:
<h1>INJECTED</h1> - Save the user profile
- Create or view an article — the injected HTML renders in the author name
Fix
Replace unescaped echo with htmlspecialchars():
value="<?php echo htmlspecialchars($values['firstname'], ENT_QUOTES, 'UTF-8') ?>"
value="<?php echo htmlspecialchars($values['lastname'], ENT_QUOTES, 'UTF-8') ?>"
Or use the existing $this->e() helper already used in editOwn.tpl.php.
Impact
- Stored HTML injection visible to all users viewing affected content
- Can be used for phishing, fake login forms, and UI defacement
- Affects all versions before 3.3.0
References
Related Vulnerabilities
Other vulnerabilities affecting the same packages
High Risk
6 hours ago
Leantime: Any Authenticated User Can Self-Escalate to Admin via Unauthorized JSON-RPC Methods
2.0 - 3.9.8 GHSA-54mm-6729-r5wp
2.0 - 3.9.8 GHSA-54mm-6729-r5wp
Low Risk
1 year ago
Leantime allows Cross-Site Scripting (XSS)
2.0 - 3.2.1 GHSA-f679-254h-qhvj
2.0 - 3.2.1 GHSA-f679-254h-qhvj
Medium Risk
1 year ago
Leantime affected by Improper Neutralization of HTML Tags
2.0 - 3.2.1 GHSA-95j3-435g-vjcp
2.0 - 3.2.1 GHSA-95j3-435g-vjcp
Low Risk
1 year ago
Leantime has Missing Authorization Check for Host Parameter
2.0 - 3.2.1 GHSA-3hfj-qcvj-4hx8
2.0 - 3.2.1 GHSA-3hfj-qcvj-4hx8
High Risk
1 year ago
Leantime allows Stored Cross-Site Scripting (XSS)
2.0 - 3.2.1 GHSA-c39w-3pjx-qc7m
2.0 - 3.2.1 GHSA-c39w-3pjx-qc7m
Impacted packages
Timeline
Published
7 months ago
March 05, 2026 at 06:05 PM UTC
Last Modified
7 months ago
March 05, 2026 at 06:16 PM UTC