GHSL-2026-030: Stored cross-site scripting (XSS) in NocoDB leading to potential unauthorized script execution - CVE-2026-28401
NocoDB's rich text cells parsed user content through a Markdown parser with HTML passthrough and rendered it with Vue's v-html directive without sanitisation. An authenticated attacker could inject malicious HTML/JavaScript that executes in the browser of any user viewing the affected record, potentially leading to account takeover.
NocoDB version v0.301.2 is vulnerable to a stored cross-site scripting (XSS) attack (GHSL-2026-030) that allows malicious scripts to be injected into rich text cells, potentially leading to unauthorized script execution in the context of other users.
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.
Context
NocoDB is an open-source no-code database platform. Among its field types is the Long Text field, which can be configured with rich text mode enabled. In that mode the cell content is parsed as Markdown and rendered as HTML.
The advisory covers NocoDB v0.301.2 and describes a stored cross-site scripting flaw in that rich text rendering path, tracked as GHSL-2026-030 and assigned CVE-2026-28401. The weakness is classified as CWE-79, improper neutralisation of input during web page generation.
Setup
The report does not describe a test environment, accounts or tooling beyond the version under test. The precondition that matters is stated in the advisory itself: a Long Text field must be configured with rich text mode enabled, and the attacker must be authenticated, because the malicious content is stored in a cell. The victim is any user who later views the affected record.
Finding it
The researcher looked at how NocoDB renders rich text cells. Two pieces of the rendering chain stood out.
First, the TextArea component renders the parsed content with Vue's v-html directive, which injects a string straight into the DOM without escaping. The advisory points at the line in packages/nc-gui/components/cell/TextArea.vue where richTextContent is rendered this way.
Second, the Markdown parser used to produce that string, NcMarkdownParser, is built on markdown-it configured with html: true in packages/nc-gui/helpers/tiptap/functionality/markdown/markdown.ts. That option tells markdown-it to pass raw HTML through unchanged instead of escaping it.
Put together, user-supplied cell content goes through a parser that preserves HTML and then into a directive that inserts it into the DOM unsanitised. Nothing in between sanitises the result, so any HTML or JavaScript written into a rich text cell becomes part of the page for every viewer.
Exploitation
The advisory does not publish a request, payload or response. It describes the mechanism rather than a reproduction transcript, so the steps below follow the rendering chain as documented and nothing more.
Step 1: Enable rich text on a Long Text field
A Long Text field must be configured with rich text mode enabled. This is the condition under which the vulnerable rendering path is used; without it, the cell content is not parsed as Markdown and rendered through v-html.
Step 2: Store HTML in a cell
An authenticated attacker writes content into a record's rich text cell. Because the Markdown parser runs with html: true, raw HTML in the cell is passed through unchanged rather than being escaped or stripped. The advisory does not include the specific payload used.
Step 3: The content is rendered for other users
When any user views the affected record, the stored content reaches the TextArea component, where richTextContent is bound to v-html and written directly into the DOM. Any script in the cell then runs in that user's browser, in the context of the NocoDB application.
Root cause
The mistake is a missing sanitisation step between parsing and rendering. markdown-it is deliberately configured with html: true, which is a legitimate choice for a Markdown renderer that wants to support inline HTML, but it means the parser's output can contain arbitrary HTML. That output is then handed to Vue's v-html, which by design does not escape its argument.
Neither was in place on this path, so the two behaviours combined into stored XSS.
Impact
The advisory states that the injected script executes in the browser context of any user viewing the affected record, and that this may lead to session hijacking, credential theft, or unauthorised actions performed on behalf of privileged users. It summarises the outcome as possible account takeover due to stored XSS.
The conditions are explicit: the attacker must be authenticated, a Long Text field must have rich text mode enabled, and a victim must view the record containing the payload. The report does not state which roles can create or edit such fields, so the reach of the attack depends on the deployment's permissions.
Fix
The advisory records that an advisory and fix were released on 2026-03-02, following the private report on 2026-02-09.
Variants to test
- Other fields or components that bind user content to
v-html. A positive result is any input that survives storage and produces executable markup when the page renders. - Markdown renderers configured with HTML passthrough in other applications. Look for
html: trueor equivalent options, then check whether the output is sanitised before insertion into the DOM. - Rich text editors that round-trip content through a parser before display. A positive result is a payload that is stored intact and executes on view rather than being escaped at either stage.
- Other rendering sinks in the same frontend, such as comment or description fields. A positive result is script execution in the context of a different user who opens the record.
Hunting notes
This class of bug hides in features where formatted content is stored once and displayed to many people: rich text fields, comments, descriptions and any Markdown-backed input. During recon, the signals are a Markdown or rich text mode toggle on an input field, and frontend code that uses v-html or an equivalent raw HTML sink. Grepping a JavaScript bundle for v-html and for parser options such as html: true is a quick way to find candidates.
Proving impact means showing that the payload is stored server-side and executes for a second user, not just for the author. The advisory frames the consequence as possible account takeover through stored XSS.
What happened, in plain words
NocoDB is a free, open-source tool that lets people build a database without writing code. You create tables, add columns (called fields), and fill in rows of data, much like a spreadsheet, but on a web page that many people can share. One of the field types is called Long Text, meant for longer pieces of writing. A Long Text field can be switched into a mode called rich text, where what you type is treated as Markdown and shown as formatted text: bold words, links, lists and so on, instead of raw characters.
Markdown is a simple way of writing formatting with plain keyboard characters. For example, wrapping a word in asterisks makes it bold when displayed. A program called a parser reads that plain text and turns it into the formatted version the browser shows.
A security researcher found that in NocoDB version v0.301.2, this rich text path could be abused. Someone who is logged in could type special HTML code into a rich text cell, and that code would be stored in the database. Later, whenever any other user opened the record containing that cell, the code would run inside that user's browser as if NocoDB itself had written it. This kind of bug is called stored cross-site scripting, or stored XSS. The finding is tracked as GHSL-2026-030 and was given the identifier CVE-2026-28401. The weakness is classified as CWE-79, which is the official catalogue name for improper neutralisation of input during web page generation: in everyday words, the program lets user input through without cleaning it, and that input ends up being treated as part of the page.
The timeline
The advisory records two dates:
- 2026-02-09: the vulnerability was reported through GitHub's private vulnerability reporting feature. This is a channel that lets a researcher tell a project about a security problem privately, before the details become public, so the project has time to fix it.
- 2026-03-02: the advisory and the fix were released.
The product and the feature involved
NocoDB is described as an open-source no-code database platform. "Open source" means the program's source code is published and anyone can read it. "No-code" means you build things by clicking in a web interface rather than by programming.
The feature at the centre of the report is the Long Text field with rich text mode enabled. When that mode is on, the content of a cell is treated as Markdown and rendered as HTML. HTML is the language web pages are written in; the browser reads it and draws the page. Rendering means turning that stored text into what you actually see on screen.
How the researcher found it
The researcher read the NocoDB source code and followed how a rich text cell travels from storage to the screen. Two parts of that journey stood out.
Part one: a directive that inserts text as live page code
NocoDB's user interface is built with a JavaScript framework called Vue. Vue has a special instruction, called a directive, named v-html. When a piece of text is attached to v-html, Vue puts that text into the page as if it were HTML code, without escaping it. Escaping means converting characters that have special meaning in HTML into harmless text, so that they are displayed as characters rather than acted on. Because v-html skips that step, anything that looks like HTML in the string becomes real page structure.
The advisory points to the TextArea component, a piece of the interface that displays a text area, and specifically to the line in packages/nc-gui/components/cell/TextArea.vue where a value called richTextContent is rendered through v-html.
Part two: a Markdown parser that lets HTML through
The text shown in that cell is first produced by a Markdown parser called NcMarkdownParser. It is built on a library named markdown-it, and it is configured with the option html: true in packages/nc-gui/helpers/tiptap/functionality/markdown/markdown.ts. That option tells markdown-it to pass raw HTML through unchanged instead of escaping it. In other words, if someone types HTML into the cell, the parser keeps it exactly as typed.
Why the two together matter
Put the two parts together and you get a chain: whatever a user types into a rich text cell goes through a parser that preserves HTML, and the result is then handed to a directive that puts it into the page as live code. Nothing in between cleans the result. So any HTML or JavaScript written into a rich text cell becomes part of the page for every person who views it.
How the attack works, step by step
The advisory does not publish a request, a payload or a response. It explains the mechanism rather than showing a reproduction transcript. The steps below simply follow the rendering chain as the advisory documents it.
Step 1: Enable rich text on a Long Text field
A Long Text field has to be configured with rich text mode enabled. This is the condition that switches on the vulnerable path. Without it, the cell content is not parsed as Markdown and not rendered through v-html, so the chain described above does not happen.
Step 2: Store HTML in a cell
An attacker who is logged in writes content into a record's rich text cell. Because the Markdown parser runs with html: true, raw HTML in the cell is passed through unchanged rather than being escaped or stripped out. The advisory does not include the specific payload that was used.
Step 3: The content is rendered for other users
When any user opens the affected record, the stored content reaches the TextArea component. There, richTextContent is bound to v-html and written directly into the page. Any script in the cell then runs in that user's browser, inside the NocoDB application. Running "in the context of" the application means the script is treated as part of NocoDB itself: it can read what the page can read and do what the page can do on behalf of the logged-in user.
The root cause
The mistake is a missing cleaning step between parsing and rendering.
markdown-it is deliberately configured with html: true. That is a legitimate choice for a Markdown renderer that wants to support inline HTML, but it means the parser's output can contain arbitrary HTML. That output is then handed to Vue's v-html, which by design does not escape its argument.
Neither was in place on this path, so the two behaviours combined into stored XSS.
Impact
The advisory states that the injected script runs in the browser context of any user viewing the affected record. It says this may lead to session hijacking, credential theft, or unauthorised actions performed on behalf of privileged users. It summarises the outcome as possible account takeover due to stored XSS.
A session is the period during which a website remembers that you are logged in, usually by keeping a small piece of data in your browser called a cookie. Session hijacking means an attacker gets hold of that proof of login and acts as you. Credential theft means stealing your username and password or similar login secrets. Account takeover means the attacker ends up in control of your account.
The conditions are explicit: the attacker must be logged in, a Long Text field must have rich text mode enabled, and a victim must view the record containing the payload. The report does not state which roles are allowed to create or edit such fields, so how far the attack reaches depends on how permissions are set up in a given installation.
The fix
The advisory records that an advisory and a fix were released on 2026-03-02, after the private report on 2026-02-09. It does not describe the code change itself, so the exact remediation is not documented here.
Related places to look
These are variations on the same idea, useful if you want to look for similar bugs elsewhere:
- Other fields or components that bind user content to
v-html. A positive result is any input that survives being stored and produces executable markup when the page renders. - Markdown renderers configured with HTML passthrough in other applications. Look for
html: trueor equivalent options, then check whether the output is cleaned before it is inserted into the page. - Rich text editors that pass content through a parser before display. A positive result is a payload that is stored intact and runs when viewed, rather than being escaped at either stage.
- Other places in the same frontend that insert content into the page, such as comment or description fields. A positive result is script execution in the context of a different user who opens the record.
Notes for people hunting this kind of bug
This class of bug hides in features where formatted content is stored once and displayed to many people: rich text fields, comments, descriptions and any input backed by Markdown. During recon, the signals are a Markdown or rich text mode toggle on an input field, and frontend code that uses v-html or an equivalent way of inserting raw HTML. Searching a JavaScript bundle for v-html and for parser options such as html: true is a quick way to find candidates.
Proving impact means showing that the payload is stored on the server and runs for a second user, not just for the person who wrote it. The advisory frames the consequence as possible account takeover through stored XSS.
Glossary
- API: a defined way for one piece of software to talk to another, like a service counter where you make a request and get a defined answer.
- Browser context: the environment a script runs in when it is part of a web page, with the same access to the page and the logged-in session as the page itself.
- Cookie: a small piece of data a website asks your browser to keep and send back on later visits, often used to remember that you are logged in.
- Credential theft: stealing login secrets such as usernames and passwords.
- CVE: a public identifier given to a known security vulnerability so people can refer to it unambiguously.
- CWE-79: the catalogue entry for cross-site scripting, meaning user input is not neutralised and ends up treated as part of the web page.
- Directive: in Vue, a special instruction in the page markup that tells the framework to do something with an element.
- DOM: the browser's in-memory model of the page, which scripts read and change to alter what you see.
- Escaping: converting characters that have special meaning in a language into harmless text so they are displayed rather than acted on.
- GHSL-2026-030: the identifier the GitHub Security Lab gave this finding.
- HTML: the language web pages are written in; the browser reads it and draws the page.
- HTML passthrough: a parser setting that lets raw HTML in the input pass through unchanged instead of being escaped.
- JavaScript: the programming language browsers run, used to make web pages interactive.
- Long Text field: a NocoDB column type meant for longer pieces of writing.
- Markdown: a simple way of writing formatting with plain keyboard characters, which a parser turns into formatted output.
- markdown-it: a library that parses Markdown and produces HTML.
- NocoDB: an open-source no-code database platform.
- No-code: building things by clicking in a web interface rather than by programming.
- Open source: software whose source code is published and can be read by anyone.
- Parser: a program that reads text in one format and converts it into another.
- Payload: the piece of malicious input an attacker delivers.
- Recon: the information-gathering phase before testing, where you look for clues about how a system is built.
- Rendering: turning stored text into what you actually see on screen.
- Rich text: text with formatting such as bold, links and lists, rather than plain characters.
- Sanitisation: cleaning input so that anything dangerous is removed or made harmless before it is used.
- Session: the period during which a website remembers that you are logged in.
- Session hijacking: an attacker obtaining your proof of login and acting as you.
- Stored XSS: cross-site scripting where the malicious input is saved on the server and runs for everyone who later views it.
- v-html: a Vue directive that inserts a string into the page as live HTML without escaping it.
- Vue: a JavaScript framework for building user interfaces.
- XSS (cross-site scripting): a bug where an attacker gets their own code to run inside another user's browser as part of a trusted website.