CVE-2026-40201

Stored XSS via Markdown Title in Diplodoc Search Extension

Published May 1, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
@diplodoc/search-extension 1.0.0 through 3.x before 3.0.3 allows stored XSS via the title in a .md file.

Analysis

AI-generated

Technical impact

The Diplodoc Search Extension versions 1.0.0 through 3.x before 3.0.3 can store malicious scripts in the title field of markdown (.md) files. When the extension renders these files, the injected script is executed in the browser, allowing an attacker to execute arbitrary client‑side code in the context of legitimate users who view the file. This flaw falls under CWE‑79 and can lead to credential theft, session hijacking, and phishing attacks.

Affected Systems

The vulnerability affects the diplodoc-platform Search Extension. All installations using any release from 1.0.0 up to, but not including, 3.0.3 are potentially exploitable. A release starting with v3.0.3 contains the fix.

Risk and Exploitability

The CVSS score of 5.4 indicates a medium severity. While no EPSS value is available and the flaw is not listed in KEV, the stored XSS nature means successful exploitation requires a user to load a malicious markdown file that the extension processes. The likely attack path involves an attacker adding or modifying a .md file with a crafted title containing JavaScript that is later rendered by the extension.

Remediation

Vendor Solution

Use the function escapeHtml within highlighte.


OpenCVE Recommended Actions

  • Upgrade the Diplodoc Search Extension to v3.0.3 or later
  • Apply the escapeHtml function from the highlighte component when rendering title fields
  • If an upgrade cannot be performed immediately, sanitize or delete any markdown files with suspicious titles to prevent script injection

Generated by OpenCVE AI on May 1, 2026 at 23:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-rjmp-rwj4-mv82 @diplodoc/search-extension allows stored XSS via Markdown file title
History
Type Values Removed Values Added
First Time appeared Diplodoc-platform
Diplodoc-platform search-extension
Vendors & Products Diplodoc-platform
Diplodoc-platform search-extension
Type Values Removed Values Added
Title Stored XSS via Markdown Title in Diplodoc Search Extension
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description @diplodoc/search-extension 1.0.0 through 3.x before 3.0.3 allows stored XSS via the title in a .md file.
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
May 5, 2026, 1:36 AM
Reserved
Apr 10, 2026, 6:45 AM
Status
Deferred
Published
May 1, 2026, 9:16 AM
Modified
Oct 26, 2026, 9:10 PM