All reports
Medium

JavaScript execution via malicious molfiles (XSS)

Affected versions

Affected versions
< 0.3.0
Fixed version
0.3.0

Exploitation

CVE-2024-0758

Probability of exploitation in the next 30 days: 0.57%

FIRST EPSS · 2026-11-22

Description

Impact

The viewer plugin implementation of <mol:molecule> renders molfile data directly inside a <script> tag without any escaping. Arbitrary JavaScript code can thus be executed in the client browser via crafted molfiles.

Patches

Patched in v0.3.0: Molfile data is now rendered as value of a hidden <input> tag and escaped via JSF's mechanisms.

Workarounds

No workaround available.

Links