CVE-2026-40201: @diplodoc/search extension Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-rjmp-rwj4-mv82
CVSS 5.4
CWE-79
Published
Advisory Summary

CVE-2026-40201 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @diplodoc/search extension libraries in the npm ecosystem. The issue involves @diplodoc/search-extension allows stored xss via markdown file title. Remediation is available by upgrading affected packages to version 3.0.5.

CVE-2026-40201 at a Glance

CVE Identifier CVE-2026-40201
GHSA Identifier GHSA-rjmp-rwj4-mv82
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product @diplodoc/search extension
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-40201

To remediate this vulnerability, upgrade all affected @diplodoc/search extension dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@diplodoc/search-extension fixed: 3.0.5
npm install @diplodoc/search-extension@3.0.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @diplodoc/search-extension

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-40201, inspect your project dependencies using npm:

npm ls @diplodoc/search-extension

Analyze the terminal output to locate any version of @diplodoc/search extension in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.5), your application is affected.

Note: The npm ls @diplodoc/search-extension command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In @diplodoc/search extension, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

@diplodoc/search-extension 1.0.0 through 3.0.2 allows stored XSS via .md file title.

CVE-2026-40201 Affected @diplodoc/search extension Versions

1 component(s)
Fixed Versions:
3.0.5
Product / Package Ecosystem Affected Versions Fixed Version
@diplodoc/search-extension
npm
≥ 1.0.0
< 3.0.5
3.0.5

References

Frequently Asked Questions

What is CVE-2026-40201?
CVE-2026-40201 is a security vulnerability in @diplodoc/search extension involving @diplodoc/search-extension allows stored XSS via Markdown file title under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which @diplodoc/search extension versions are affected?
Affected versions include releases prior to 3.0.5 across affected packages: @diplodoc/search-extension.
What version fixes CVE-2026-40201?
Upgrading to 3.0.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @diplodoc/search-extension affected?
Yes, @diplodoc/search-extension is affected in releases prior to 3.0.5. Upgrade your dependency to 3.0.5 or later.
What is the CVSS score of CVE-2026-40201?
CVE-2026-40201 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2026-40201?
CVE-2026-40201 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2026-40201?
Run the dependency tree command: 'npm ls @diplodoc/search-extension'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rjmp-rwj4-mv82",
  "modified" : "2026-05-07T02:44:09Z",
  "published" : "2026-05-01T09:30:25Z",
  "aliases" : [ "CVE-2026-40201" ],
  "summary" : "@diplodoc/search-extension allows stored XSS via Markdown file title",
  "details" : "@diplodoc/search-extension 1.0.0 through 3.0.2 allows stored XSS via .md file title.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@diplodoc/search-extension"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "3.0.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40201"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/diplodoc-platform/search-extension/pull/41"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/diplodoc-platform/search-extension"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/diplodoc-platform/search-extension/releases"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/diplodoc-platform/search-extension/releases/tag/v3.0.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eyelessgoddd/eyelessgoddd/blob/main/README.md"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-07T02:44:09Z",
    "nvd_published_at" : "2026-05-01T09:16:16Z"
  }
}