CVE-2026-40201 @diplodoc/search-extension allows stored XSS via Markdown file title

Medium 5.4 Published Updated

Stored XSS in @diplodoc/search-extension allows attackers to execute scripts via malicious Markdown titles, affecting users of the library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-40201?

CVE-2026-40201 is a medium-severity cross-site scripting vulnerability in diplodoc-platform @diplodoc/search-extension, published on 1 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

@diplodoc/search-extension 1.0.0 through 3.x before 3.0.3 allows stored XSS via the title in a .md file.

Weakness: CWE-79

Which versions are affected by CVE-2026-40201?

2 open source packages ship an affected version, including @diplodoc/search-extension.

PackageAffectedFixed in
@diplodoc/search-extension npmFrom 1.0.03.0.5
@diplodoc/search-extension npmFrom 1.0.03.0.5

How do I fix CVE-2026-40201?

Upgrade @diplodoc/search-extension to 3.0.5 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-40201 being exploited?

There is no known exploitation of CVE-2026-40201 in the wild and no public exploit code.

Sources

Also known as GHSA-rjmp-rwj4-mv82.

Is CVE-2026-40201 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free