llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · leantime/leantime

GHSA-QRFH-CC86-VC8C

Leantime has HTML injection through firstname and lastname fields

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión3.3.0
Exposición260 dDesde la divulgación, 5 mar 2026, 1:05 p. m.
Detección256 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de la severidad declarada por GHSA (media) y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Si tu inventario está al día, ya ganaste.Ponle etiqueta y a la cola. Ordenadito.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Monitoreo
Detectada
5 mar 26
17 nov 26
21 nov 26
5 mar 26
9 may 26
14 jul 26
17 sept 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-QRFH-CC86-VC8C divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### 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
1. Login as admin > Go to Settings > Users > Edit any user
2. Enter HTML payload in First Name or Last Name field:
`<h1>INJECTED</h1>`
3. Save the user profile
4. 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

Versiones

Rangos afectados

Afectada Corregida
leantime/leantime< 3.3.0
3.3.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistleantime/leantime
Corregida 3.3.0 — —
Versiones corregidas3.3.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/Leantime/leantime/security/advisories/GHSA-qrfh-cc86-vc8c
Otrahttps://github.com/Leantime/leantime/commit/3f8b2c6346111694bb18cec558b27c22d3a2b9d1
Otrahttps://github.com/Leantime/leantime

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.