{"id":"CVE-2024-0758","aliases":["GHSA-2pwh-52h7-7j84"],"url":"https://o3.security/vulnerability/CVE-2024-0758","summary":"MolecularFaces XSS","details":"### Impact\nThe 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.\n\n### Patches\nPatched in v0.3.0: Molfile data is now rendered as value of a hidden `<input>` tag and escaped via JSF's mechanisms.\n\n### Workarounds\nNo workaround available.","published":"2024-01-19T20:19:40.558Z","modified":"2026-08-12T03:51:12.550677449Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Maven","name":"de.ipb-halle:molecularfaces","fixedVersion":"0.3.0"}],"fix":null,"references":[{"type":"WEB","url":"https://repo.maven.apache.org/maven2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/0xxx/CVE-2024-0758.json"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2pwh-52h7-7j84"},{"type":"ADVISORY","url":"https://github.com/ipb-halle/MolecularFaces/security/advisories/GHSA-2pwh-52h7-7j84"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0758"},{"type":"ADVISORY","url":"https://vulncheck.com/advisories/vc-advisory-GHSA-2pwh-52h7-7j84"},{"type":"PACKAGE","url":"https://github.com/ipb-halle/MolecularFaces"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:12.550677449Z"}}