ketcher-core is vulnerable to Cross-Site Scripting (XSS)
61
Medium Risk
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.
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.
ketcher-core is vulnerable to Cross-Site Scripting (XSS) in versions 2.23.0 - 3.16.0 and 3.17.0 - 3.17.0.
Upgrade the ketcher-core library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant