Skip to content
XSS Advisory Beginner CVE-2026-28397

GHSL-2026-031: Stored cross-site scripting (XSS) in NocoDB leading to potential account takeover - CVE-2026-28397

NocoDB's expanded form comments feature renders user-supplied HTML without sanitisation, allowing an authenticated attacker to inject malicious scripts that execute in other users' browsers. This stored cross-site scripting could lead to session hijacking, data theft, or account takeover.

p Follow

Originally disclosed on GitHub Security Lab

NocoDB version v0.301.2 is vulnerable to a stored cross-site scripting (XSS) attack (GHSL-2026-031), where malicious scripts can be injected into comments.

p-, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

This could lead to account takeover because the injected script runs in the victim's browser context, potentially allowing session hijacking, data theft, or unauthorised actions.

What the attacker needed

Authenticated attacker; victim views the comment

The fix

The vulnerability was fixed in the advisory release by sanitising comment HTML before rendering.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you type a comment, the app usually treats it as plain text. Here, the app takes the comment and inserts it directly into the web page as if it were part of the website's own code. That means a malicious comment can contain a small program (JavaScript) that runs in the browser of anyone who views it, letting the attacker act as that user.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by p

View all

49 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.