{"id":"CVE-2020-15138","published":"2020-08-07T16:30:14Z","modified":"2024-08-04T13:08:21Z","title":"Cross-Site Scripting in Prism","vendor":"PrismJS","product":"prism","tier":"tail","description":{"text":"Prism is vulnerable to Cross-Site Scripting. The easing preview of the Previewers plugin has an XSS vulnerability that allows attackers to execute arbitrary code in Safari and Internet Explorer. This impacts all Safari and Internet Explorer users of Prism >=v1.1.0 that use the _Previewers_ plugin (>=v1.10.0) or the _Previewer: Easing_ plugin (v1.1.0 to v1.9.0). This problem is fixed in version 1.21.0. To workaround the issue without upgrading, disable the easing preview on all impacted code blocks. You need Prism v1.10.0 or newer to apply this workaround.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02041,"percentile":0.81629,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/PrismJS/prism/security/advisories/GHSA-wvhm-4hhf-97x9","tags":["x_refsource_CONFIRM"]},{"url":"https://prismjs.com/plugins/previewers/#disabling-a-previewer","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrismJS/prism/pull/2506/commits/7bd7de05edf71112a3a77f87901a2409c9c5c20c","tags":["x_refsource_MISC"]}],"priority":{"score":21.3,"factors":[{"name":"EPSS percentile","points":16.33},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"prismjs","affectedVersions":[{"vendor":"PrismJS","product":"prism","versions":[">= 1.1.0, < 1.21.0"]}],"affected":[{"ecosystem":"npm","package":"prismjs","vulnerableRanges":[">=1.1.0, <1.21.0"],"patched":["1.21.0"],"from":["GHSA-wvhm-4hhf-97x9"],"provenance":"source"}],"summary":{"text":"A cross-site scripting flaw exists in the easing preview of the Previewers plugin (also known as the Previewer: Easing plugin) in PrismJS's prism product, allowing script injection in the page. An attacker can execute arbitrary code in the browsers of Safari and Internet Explorer users of affected Prism versions that use this plugin, but only if the victim interacts with the page (user interaction is required) and the attacker can get malicious input into the page, with no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:09:36Z"},"euvd":{"id":"EUVD-2020-0649","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-15138","published":"2020-08-07","fixed":"1.21.0","kev":false},{"cve":"CVE-2021-23341","published":"2021-02-18","fixed":"1.23.0","kev":false,"link":{"from":"CVE-2020-15138","to":"CVE-2021-23341","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:prismjs","fromFixed":"1.21.0","toFixed":"1.23.0","daysApart":195}]}},{"cve":"CVE-2021-32723","published":"2021-06-28","fixed":"1.24.0","kev":false},{"cve":"CVE-2021-3801","published":"2021-09-15","fixed":"1.25.0","kev":false}],"package":"npm:prismjs"}}