{"id":"CVE-2024-0758","aliases":["EUVD-2024-0445","GHSA-2pwh-52h7-7j84","GHSA-wc6f-qjxc-622v"],"status":"published","title":"MolecularFaces XSS","description":"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.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00566,"percentile":0.4729,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2021-04-16T19:52:49Z","modified":"2026-11-08T13:59:49Z","fixes":[{"ecosystem":"Maven","package":"de.ipb-halle:molecularfaces","fixed_in":["0.3.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"de.ipb-halle:molecularfaces","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.3.0"}]}]},{"source":"osv","ecosystem":"Maven","package":"de.ipb-halle:molecularfaces","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.3.0"}]}],"versions":["0.2.0"]}],"products":[{"vendor":"ipb-halle","product":"molecularfaces"}],"references":[{"url":"https://github.com/ipb-halle/MolecularFaces/security/advisories/GHSA-2pwh-52h7-7j84","tags":["vendor-advisory","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/advisories/GHSA-2pwh-52h7-7j84","tags":["vendor-advisory","third-party-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://vulncheck.com/advisories/vc-advisory-GHSA-2pwh-52h7-7j84","tags":["third-party-advisory","x_transferred","Third Party Advisory","US Government Resource","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0758","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wc6f-qjxc-622v"},{"url":"https://repo.maven.apache.org/maven2","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/0xxx/CVE-2024-0758.json","tags":["advisory"]},{"url":"https://github.com/ipb-halle/MolecularFaces","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-0758","title":"MolecularFaces XSS","description":"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.","status":"published","published":"2024-01-19T20:19:40.558Z","modified":"2026-11-08T13:59:49.475Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"adp"}],"cwes":["CWE-79"],"updated_at":"2026-11-08T14:43:22.764053Z"}],"euvd":[{"id":"EUVD-2024-0445","description":"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.","status":"published","published":"2024-01-19T20:19:40Z","modified":"2026-11-08T13:59:49Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-08T15:13:10.25084Z"}],"ghsa":[{"id":"GHSA-2pwh-52h7-7j84","title":"JavaScript execution via malicious molfiles (XSS)","description":"### Impact\nThe viewer plugin implementation of `\u003cmol:molecule\u003e` renders molfile data directly inside a `\u003cscript\u003e` 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 `\u003cinput\u003e` tag and escaped via JSF's mechanisms.\n\n### Workarounds\nNo workaround available.","status":"published","published":"2021-04-16T19:52:49Z","modified":"2026-01-22T20:36:40Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:39:19.525691Z"},{"id":"GHSA-wc6f-qjxc-622v","title":"Duplicate Advisory: JavaScript execution via malicious molfiles (XSS)","description":"## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-2pwh-52h7-7j84. This link is maintained to preserve external references.\n\n## Original Description\nMolecularFaces 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.","status":"withdrawn","published":"2024-01-19T21:30:36Z","modified":"2026-01-22T20:36:32Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:39:19.525691Z"}],"nvd":[{"id":"CVE-2024-0758","description":"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.","status":"published","published":"2024-01-19T21:15:09.6Z","modified":"2026-07-14T23:17:13.353Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:09:32.147098Z"}],"osv":[{"id":"CVE-2024-0758","title":"MolecularFaces XSS","description":"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.","status":"published","published":"2024-01-19T20:19:40.558Z","modified":"2026-11-09T02:31:04.416068328Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-09T03:16:44.651171Z"},{"id":"GHSA-2pwh-52h7-7j84","title":"JavaScript execution via malicious molfiles (XSS)","description":"### Impact\nThe viewer plugin implementation of `\u003cmol:molecule\u003e` renders molfile data directly inside a `\u003cscript\u003e` 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 `\u003cinput\u003e` tag and escaped via JSF's mechanisms.\n\n### Workarounds\nNo workaround available.","status":"published","published":"2021-04-16T19:52:49Z","modified":"2026-07-08T06:52:56.132811419Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:34.700741Z"},{"id":"GHSA-wc6f-qjxc-622v","title":"Duplicate Advisory: JavaScript execution via malicious molfiles (XSS)","description":"## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-2pwh-52h7-7j84. This link is maintained to preserve external references.\n\n## Original Description\nMolecularFaces 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.","status":"withdrawn","published":"2024-01-19T21:30:36Z","modified":"2026-02-03T03:09:51.641565Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:58.401149Z"}]}}
