{"id":"CVE-2025-27506","published":"2025-03-06T18:52:10Z","modified":"2025-03-06T19:19:39Z","title":"NocoDB Vulnerable to Reflected Cross-Site Scripting on Reset Password Page","vendor":"nocodb","product":"nocodb","tier":"tail","description":{"text":"NocoDB is software for building databases as spreadsheets. The API endpoint related to the password reset function is vulnerable to Reflected Cross-Site-Scripting. The endpoint /api/v1/db/auth/password/reset/:tokenId is vulnerable to Reflected Cross-Site-Scripting. The flaw occurs due to implementation of the client-side template engine ejs, specifically on file resetPassword.ts where the template is using the insecure function “<%-“, which is rendered by the function renderPasswordReset. This vulnerability is fixed in 0.258.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00977,"percentile":0.60884,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/nocodb/nocodb/security/advisories/GHSA-wf6c-hrhf-86cw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nocodb/nocodb/commit/ea821edb133e621e26183ae65c8ff9ee5d6f2723","tags":["x_refsource_MISC"]},{"url":"https://github.com/nocodb/nocodb/blob/ba5a191b33259d984fc92df225f7d82ede2ddb56/packages/nocodb/src/modules/auth/auth.controller.ts#L251","tags":["x_refsource_MISC"]},{"url":"https://github.com/nocodb/nocodb/blob/ba5a191b33259d984fc92df225f7d82ede2ddb56/packages/nocodb/src/modules/auth/ui/auth/resetPassword.ts#L71","tags":["x_refsource_MISC"]}],"priority":{"score":21.0,"factors":[{"name":"EPSS percentile","points":12.18},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.78}]},"exploitSources":{"nuclei":[{"id":"CVE-2025-27506","name":"NocoDB < 0.258.0 - Reflected XSS in Password Reset","severity":"medium","path":"http/cves/2025/CVE-2025-27506.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-27506.yaml"}],"provenance":"source"},"vendorSlug":"nocodb","affectedVersions":[{"vendor":"nocodb","product":"nocodb","versions":["< 0.258.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-06T19:12:15.561592Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"nocodb","vulnerableRanges":["<0.258.0"],"patched":["0.258.0"],"from":["GHSA-wf6c-hrhf-86cw"],"provenance":"source"}],"summary":{"text":"NocoDB, a software product for building spreadsheet-style databases, has a reflected cross-site scripting flaw in the password reset endpoint /api/v1/db/auth/password/reset/:tokenId, caused by the unsafe \"<%-\" output tag in the ejs template rendered by renderPasswordReset in resetPassword.ts. An unauthenticated remote attacker can exploit this by getting a victim to follow a crafted link and interact with the page, which can run attacker-supplied script in the victim's browser with limited confidentiality and integrity impact.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:02Z"},"euvd":{"id":"EUVD-2025-7786","exploited":false,"provenance":"source"}}