CVE-2025-27506: NocoDB Vulnerable to Reflected Cross-Site Scripting on Reset Password Page
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.2276%
CWE
Published
3/6/2025
Updated
3/6/2025
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| nocodb | npm | < 0.258.0 | 0.258.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability arises from two key points: (1) The renderPasswordReset function in auth.controller.ts passes the unsanitized tokenId to the EJS template. (2) The template in resetPassword.ts uses the <%- syntax, which does not escape the token value. Together, this allows an attacker to inject arbitrary scripts via the token parameter, leading to reflected XSS. The patch fixed this by wrapping the token in quotes and using secure EJS output methods.