{"id":"CVE-2024-0758","aliases":["CVE-2024-0758","GHSA-2pwh-52h7-7j84"],"related":[],"kind":"vulnerability","state":"published","title":"MolecularFaces XSS","summary":"MolecularFaces before 0.3.0 is vulnerable to cross site scripting. A remote attacker can execute arbitrary JavaScript in the context of a victim browser via crafted molfiles.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"MolecularFaces before 0.3.0 is vulnerable to cross site scripting. A remote attacker can execute arbitrary JavaScript in the context of a victim browser via crafted molfiles.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"MolecularFaces anteriores a 0.3.0 son vulnerables a cross site scripting. Un atacante remoto puede ejecutar JavaScript arbitrario en el contexto del navegador de la víctima a través de archivos mol manipulados.","source":"nvd"}],"published":"2021-04-16T19:52:49.000Z","modified":"2026-11-08T13:59:49.475Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"maven","introduced":"0","fixed":"0.3.0","status":"affected"}],"package":"de.ipb-halle:molecularfaces","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.3.0"}],"ecosystem":"Maven","package":"de.ipb-halle:molecularfaces","purl":"pkg:maven/de.ipb-halle/molecularfaces","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.3.0"}],"vendor":"ipb-halle","product":"molecularfaces","cpe":"cpe:2.3:a:ipb-halle:molecularfaces:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ipb-halle/MolecularFaces/security/advisories/GHSA-2pwh-52h7-7j84","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/advisories/GHSA-2pwh-52h7-7j84","tags":["third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://vulncheck.com/advisories/vc-advisory-GHSA-2pwh-52h7-7j84","tags":["third-party-advisory","us-government-resource","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0758","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ipb-halle/MolecularFaces","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-05-08T17:35:46.268Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-0758","url":"https://www.cve.org/CVERecord?id=CVE-2024-0758","licence":"CVE Terms of Use","modified":"2026-11-08T13:59:49.475Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2pwh-52h7-7j84","url":"https://github.com/advisories/GHSA-2pwh-52h7-7j84","licence":"CC-BY-4.0","modified":"2026-07-08T06:52:56.132Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-0758","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0758","licence":"Public domain","modified":"2026-07-14T23:17:13.353Z"}],"updatedAt":"2026-11-25T22:58:36.240Z","epss":{"score":0.00628,"percentile":0.51429,"date":"2026-12-01T12:00:22.000Z"}}