llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · nilsteampassnet/teampass

GHSA-9G8H-6QG5-CMHX

Stored cross-site scripting through item labels, folder titles and directory attributes

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
8.1
Alta
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición102 dDesde la divulgación, 11 ago 2026, 10:48 a. m.
Detección99 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir de cerca
Monitorear y programar la remediación
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico total. No hay versión corregida: aplique mitigaciones.
Revisa tus logs de la semana con la lupa.Anótala en tu libreta de pendientes serios.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
11 ago 26
19 nov 26
21 nov 26
11 ago 26
6 sept 26
1 oct 26
27 oct 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-9G8H-6QG5-CMHX divulgada · CVSS 8.1 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

Several screens build their markup by concatenating user-controlled values into HTML strings and inserting the
result with jQuery `.html()`. A user who can create an item or a folder — or who controls a display name in a
connected LDAP/Entra directory — can store a value that executes JavaScript in the browser of another user who later
opens the affected screen, including an administrator.

Details

The client-side helper `purifyData()`, which every AJAX response passes through, returns plain, unescaped text:
`simplePurifier()` strips tags but decodes HTML entities twice — once through an explicit replacement chain, once
through the `innerHTML` → `textContent` round-trip it uses to flatten the sanitized output. Values that the server
correctly stored escaped therefore arrive at the rendering code as live characters, and the affected screens
interpolate them without re-encoding.

Three sinks are reachable:

1. Search results panel — `app/pages/search.js.php`

The item label is placed in an attribute without encoding:

data-label="' + data.label + '"

A double quote is enough, because the entity the server stores is decoded on the way back:

typed as an item label : boom" onmouseover="alert(1)
stored in the database : boom" onmouseover="alert(1)
after purifyData()     : boom" onmouseover="alert(1)
rendered               : data-label="boom" onmouseover="alert(1)"

Triggered when any user expands that item in the search results.

2. Role permission matrix — `app/pages/roles.js.php`

Folder titles, folder paths and role names are concatenated into the table markup. Here the value reaches a text
context, so it takes one additional encoding layer — which the server's own escaping supplies:

typed as a folder title : <img src=x onerror=alert(1)>
stored in the database  : <img src=x onerror=alert(1)>
after purifyData()      : <img src=x onerror=alert(1)>

Triggered when an administrator or a manager opens the role matrix.

3. LDAP and OAuth2 user synchronisation screens — `app/pages/users.js.php`

Logins, display names, mail addresses and group names are taken straight from the directory and written into
`data-user-*` and `title` attributes. These values are never stored by TeamPass, so no server-side escaping applies
at all; `purifyData()` removes tags but preserves quotes, which is sufficient to break out of the attribute. The
`title` attribute additionally carries `data-html="true"`, so its content is rendered as HTML by the tooltip.

Triggered when an administrator opens the directory synchronisation screen.

Impact

Arbitrary JavaScript execution in the session of another authenticated user, in most cases an administrator or a
manager, on the origin serving the vault. Within that session an attacker can reach the AJAX endpoints with the
victim's privileges, read secrets rendered in the page, and perform user- and vault-management actions. Scope is
marked *changed* because the code executes in a browser context that is not the vulnerable component itself.

Exploitation requires an authenticated account holding creation rights on a folder (sinks 1 and 2), or control over
an account name in a directory synchronised with TeamPass (sink 3), and requires the victim to open the affected
screen.

Patches

Fixed in 3.2.1.6. Every user-controlled value interpolated into markup on these screens is now encoded at the
point of insertion. A regression test (`tests/Unit/ClientHtmlEncodingSentinelTest.php`) enforces the rule across the
front-end sources so that a new screen cannot reintroduce the pattern.

The upgrade also normalises identity fields and folder titles already stored unescaped by earlier releases; this
runs automatically as part of the standard upgrade procedure.

Workarounds

None. Restricting item and folder creation, and reviewing directory display names, reduces exposure but does not
remove it. Upgrading to 3.2.1.6 is the only fix.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:H
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
6.0/ 10Medio
Vector 6.0 (fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
nilsteampassnet/teampass≤ 3.2.1.5
3.2.1.5
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistnilsteampassnet/teampass
Sin parche — — —
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/nilsteampassnet/TeamPass/security/advisories/GHSA-9g8h-6qg5-cmhx

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