CVE-2023-50717 NocoDB Allows Preview of File with Dangerous Content

Medium 5.7 Published Updated

Attackers can upload malicious HTML files to trigger stored XSS, allowing script execution and data theft in victim browsers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-50717?

CVE-2023-50717 is a medium-severity cross-site scripting vulnerability in nocodb, published on 13 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

NocoDB is software for building databases as spreadsheets. Starting in verson 0.202.6 and prior to version 0.202.10, an attacker can upload a html file with malicious content. If user tries to open that file in browser malicious scripts can be executed leading stored cross-site scripting attack. This allows remote attacker to execute JavaScript code in the context of the user accessing the vector. An attacker could have used this vulnerability to execute requests in the name of a logged-in user or potentially collect information about the attacked user by displaying a malicious form. Version 0.202.10 contains a patch for the issue.

Weakness: CWE-79, CWE-434

Which versions are affected by CVE-2023-50717?

2 open source packages ship an affected version, including nocodb. It affects 1 product.

PackageAffectedFixed in
nocodb npmFrom 0.202.60.202.10
nocodb npmFrom 0.202.60.202.10

Products include Nocodb Nocodb.

How do I fix CVE-2023-50717?

Upgrade nocodb to 0.202.10 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-50717 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-50717 exists.

Sources

Also known as GHSA-qg73-g3cf-vhhh.

Is CVE-2023-50717 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free