CVE-2024-0758
JavaScript execution via malicious molfiles (XSS)
6.1
MEDIUM
CVSS 3.1
EPSS 3.7%
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.
How to fix CVE-2024-0758
To remediate CVE-2024-0758, upgrade the affected package to a fixed version below.
- —upgrade to 0.3.0 or later
Is CVE-2024-0758 being exploited?
Low — EPSS is 3.7%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 0.3.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |