Intel

AIKIDO-2026-900777

ketcher-core is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

61

Medium Risk

This Affects:

JSketcher-core
2.23.0 - 3.16.0
Fixed in 3.16.1
3.17.0 - 3.17.0
Fixed in 3.17.1
Are you affected? Scan for Free

TL;DR

The UnsplitNucleotideRenderer in the macromolecule canvas renders a monomer's label into an SVG foreignObject using a d3 .html() call that interpolates the label directly into markup. When a structure file such as a KET file contains a monomer whose label holds HTML or script, that content is parsed as markup instead of being shown as text. As a result, an attacker who supplies a crafted structure file can execute arbitrary script in the context of the application that embeds Ketcher. The fix renders the label with .text() on a dedicated xhtml:div, so label content is always treated as plain text.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you open or load untrusted structure files in the macromolecules editor.

Background info

ketcher-core is vulnerable to Cross-Site Scripting (XSS) in versions 2.23.0 - 3.16.0 and 3.17.0 - 3.17.0.

How to fix this

Upgrade the ketcher-core library to the patch version.