CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-84992

CVE-2026-84992: Cross-Site Scripting (XSS) via Fenced Code Block Parsing in md-editor-v3

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 19, 2026·6 min read·40 visits

Executive Summary (TL;DR)

A Cross-Site Scripting (XSS) vulnerability exists in md-editor-v3 prior to version 6.5.4, allowing unauthenticated remote execution of client-side scripts via crafted Markdown containing malicious fenced-code headers.

CVE-2026-84992 is a Cross-Site Scripting (XSS) vulnerability affecting md-editor-v3 before version 6.5.4. It occurs because the fenced-code block language parser directly interpolates unescaped language metadata into unquoted HTML attributes inside the custom rendering callback. This bypasses the built-in XSSPlugin which runs during the parsing phase, before rendering.

Vulnerability Overview

The md-editor-v3 package is a Markdown editor designed for Vue 3, implemented using JSX and TypeScript. It relies on the popular markdown-it parsing engine to transform Markdown inputs into structured HTML output. This parsing flow exposes an attack surface when processing user-defined metadata associated with fenced code blocks.

The vulnerability, tracked as CVE-2026-84992, represents an improper neutralization of input during web page generation, specifically a Cross-Site Scripting (XSS) vulnerability. The flaw resides in how the editor extracts and processes the language identifier from fenced code blocks inside its custom renderer logic. When the renderer constructs the wrapper HTML, it fails to sanitize or properly quote the extracted language metadata before inserting it into the final DOM container.

Applications utilizing md-editor-v3 for displaying user-generated content, such as discussion boards, comments, or documentation platforms, are directly exposed to this vulnerability. An attacker can exploit this flaw to execute arbitrary client-side script code in the context of the victim's browser session.

Root Cause Analysis

The technical root cause of CVE-2026-84992 lies in the custom rendering configuration of the markdown-it instance defined in packages/MdEditor/layouts/Content/composition/useMarkdownIt.ts. In markdown parsing, fenced code blocks are defined by triple backticks followed by an optional info string denoting the programming language. The editor extracts this info string and assigns it to a variable representing the language.

During the rendering pass, the custom hook generates a raw HTML string using standard ES6 template literals. The extracted language variable is interpolated directly into two locations: the class attribute of the code tag and a custom language attribute of the same tag. Crucially, the custom language attribute is defined without surrounding double or single quotes, resulting in the structure: language=${language}.

Furthermore, the application's built-in defense mechanism, XSSPlugin, fails to catch this injection. The XSSPlugin is registered as a token-level filter that sanitizes explicit inline HTML tokens (html_block and html_inline) before the final rendering stage. Because the custom code-fence renderer operates during the rendering execution phase itself, it generates new HTML markup after the token-level sanitization pass is complete. This architectural order of operations effectively bypasses the built-in XSS filter entirely.

Code Analysis

An examination of the vulnerable implementation in useMarkdownIt.ts reveals the structural flaw in the code block renderer. The renderer constructs the returned HTML string using raw concatenation of the unescaped language variable.

// Vulnerable implementation in useMarkdownIt.ts
return `<pre><code class="language-${language}" language=${language}>${codeSpan}</code></pre>`;

In this structure, the lack of quotes around the second language attribute allows space-separated arguments to be interpreted as distinct HTML attributes by the browser's parser. In addition, the lack of HTML escaping means characters like double quotes can break out of the class attribute string.

The patch introduced in commit 2c07360420e74087f5bc63032ab155d93e0a0b10 corrects this behavior by introducing strict HTML escaping and proper quoting of attributes. The updated code utilizes the utility function md.utils.escapeHtml to neutralize any dangerous characters prior to interpolation.

// Patched implementation in useMarkdownIt.ts
const escapedLanguage = md.utils.escapeHtml(language);
return `<pre><code class="language-${escapedLanguage}" language="${escapedLanguage}">${codeSpan}</code></pre>`;

This patch successfully prevents attribute breakout by converting character literals such as " to &quot;, < to &lt;, and > to &gt;. Additionally, a parallel DOM-based vulnerability was addressed in useCopyCode.ts where visual text updates were shifted from the dangerous innerHTML sink to the safe textContent API, neutralizing downstream DOM manipulation vectors.

Exploitation Methodology

Exploiting CVE-2026-84992 is straightforward and requires no prior privileges or complex authentication, assuming the target application accepts user-controlled Markdown. The attacker constructs a markdown payload utilizing a fenced code block with a custom language attribute designed to inject malicious HTML handlers.

The payload leverages the unquoted attribute in the generated HTML to append custom event handlers, such as onmouseover or onload, alongside a style block that stretches the element across the entire viewport. A schematic representation of the exploit payload is detailed below:

```js"onmouseover="alert(document.domain)"style="display:block;width:100vw;height:100vh;position:fixed;top:0;left:0;"
// Exploit payload triggers on mouse movement

When parsed by the vulnerable version of md-editor-v3, this Markdown is processed into the following raw HTML output:

&lt;pre&gt;&lt;code class="language-js"onmouseover="alert(document.domain)"style="display:block;width:100vw;height:100vh;position:fixed;top:0;left:0;"" language=js"onmouseover="alert(document.domain)"style="display:block;width:100vw;height:100vh;position:fixed;top:0;left:0;""&gt;...&lt;/code&gt;&lt;/pre&gt;

In this output, the browser interprets the first double quote in the input as the closing quote for the class attribute. The subsequent string onmouseover="alert(document.domain)" is processed as a standard event handler. The injected inline CSS ensures that the code element fills the entire browser window, forcing an immediate execution of the script as soon as the user moves their mouse over any part of the page.

Impact Assessment

The impact of this vulnerability is classified as Medium, receiving a CVSS v3.1 base score of 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N). The scope is changed (S:C) because the execution of script content occurs within the context of the user's browser, allowing access to resources outside the direct scope of the editor itself.

By executing arbitrary JavaScript in the user's browser, an attacker can access session identifiers, cookies, local storage tokens, or other sensitive information. If the target application relies on session cookies without the HttpOnly flag, the attacker can hijack active sessions and impersonate the victim.

Furthermore, the attacker can perform unauthorized actions on behalf of the user, such as modifying profile data, submitting form requests, or executing DOM-based modifications (defacement). In highly privileged sessions (e.g., administrator panels), this could lead to full control over application state or user accounts.

Detection and Remediation Guidance

Organizations can detect vulnerable instances of md-editor-v3 by auditing dependency trees within node projects. Searching lockfiles (package-lock.json, yarn.lock, or pnpm-lock.yaml) for references to md-editor-v3 with versions prior to 6.5.4 will pinpoint vulnerable deployments.

The recommended mitigation is to upgrade the md-editor-v3 package to version 6.5.4 or later, which contains the complete fix. The patch resolves the vulnerability by properly sanitizing metadata inputs and switching the active UI rendering endpoints to safe DOM interfaces.

In scenarios where upgrading the package is not immediately possible, applications can implement a Content Security Policy (CSP) that restricts script execution. Specifically, removing the 'unsafe-inline' directive from the script-src policy will prevent the browser from executing event handlers injected through the attribute breakout. Alternatively, applying post-rendering sanitization using a library like DOMPurify on the HTML generated by the editor can act as an effective secondary line of defense.

Fix Analysis (1)

Technical Appendix

CVSS Score
6.1/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected Systems

md-editor-v3 package for Vue 3Applications rendering untrusted Markdown using MdPreview or MdEditor in md-editor-v3

Affected Versions Detail

Product
Affected Versions
Fixed Version
md-editor-v3
imzbf
< 6.5.46.5.4
AttributeDetail
CWE IDCWE-79
Attack VectorNetwork (AV:N)
CVSS Score6.1 (Medium)
Exploit StatusPoC / Theoretical
KEV StatusNot Listed
ImpactClient-side Script Execution / Session Hijacking

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1185Browser Session Hijacking
Collection
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The software does not neutralize or incorrectly neutralizes user-controlled input before it is placed in output that is used as a web page that is served to other users.

Vulnerability Timeline

Fix Commit 2c07360420e74087f5bc63032ab155d93e0a0b10 Pushed
2026-07-17
Release v6.5.4 Published
2026-07-17
GitHub Security Advisory GHSA-3rm2-h79c-8qw6 Disclosed
2026-09-18

References & Sources

  • [1]NVD Record for CVE-2026-84992
  • [2]CVE.org Authority Record
  • [3]GitHub Security Advisory GHSA-3rm2-h79c-8qw6
  • [4]Patch Commit
  • [5]Release v6.5.4 Changelog

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•12 minutes ago•CVE-2026-62683
3.1

CVE-2026-62683: Incorrect Authorization via Stale Public Shares in File Browser

File Browser versions prior to 2.63.17 contain an authorization and state-management flaw in the BoltDB storage backend. When an authenticated user deletes a shared directory via an HTTP request with a trailing slash (e.g., DELETE /api/resources/a/), the share cleanup routine queries the database index using the unnormalized path before stripping the trailing slash. Because canonical share paths are stored without trailing slashes (e.g., /a), the database prefix query fails to match the parent directory share record. If a directory with the same name is later recreated, the dormant public share hash automatically reactivates and exposes the new directory contents to unauthenticated users.

Alon Barad
Alon Barad
0 views•10 min read
•about 1 hour ago•CVE-2026-62297
7.5

CVE-2026-62297: Uncontrolled Memory Allocation and Denial of Service in ag-psd

An uncontrolled memory allocation vulnerability exists in ag-psd versions prior to 31.0.0. When parsing Adobe Photoshop Document (PSD) files, the readPsd() function reads image dimensions and color depth directly from the file header and allocates off-heap typed arrays without validating whether the requested memory size is proportional to the input stream or bounded by operational thresholds. An unauthenticated attacker can supply a crafted 52-byte PSD payload that triggers an immediate 3.35 GB memory allocation, resulting in process termination via the operating system Out-Of-Memory (OOM) killer.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 2 hours ago•CVE-2026-126297
7.5

CVE-2026-126297: Algorithmic Complexity Denial of Service in NLTK ConllCorpusReader

CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).

Amit Schendel
Amit Schendel
3 views•12 min read
•about 3 hours ago•CVE-2026-126298
7.5

CVE-2026-126298: Quadratic Algorithmic Complexity Denial of Service in NLTK Tree.chomsky_normal_form

CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.

Alon Barad
Alon Barad
6 views•12 min read
•about 4 hours ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
5 views•10 min read
•about 5 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read