{"id":"CVE-2020-15138","aliases":["CVE-2020-15138","GHSA-wvhm-4hhf-97x9"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in Prism","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe easing preview of the Previewers plugin has an XSS vulnerability that allows attackers to execute arbitrary code in Safari and Internet Explorer.\n\nThis 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).\n\n### Patches\nThis problem is patched in v1.21.0.\n\n### Workarounds\nTo workaround the issue without upgrading, [disable the easing preview](https://prismjs.com/plugins/previewers/#disabling-a-previewer) on all impacted code blocks. You need Prism v1.10.0 or newer to apply this workaround.\n\n### References\nThe vulnerability was introduced by this [commit](https://github.com/PrismJS/prism/commit/4303c940d3d3a20e8ce7635bf23331c75060f5c5) on Sep 29, 2015 and fixed by [Masato Kinugawa](https://twitter.com/kinugawamasato) (#2506).\n\n### For more information\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/PrismJS/prism/issues).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Prism es vulnerable a un ataque de tipo Cross-Site Scripting. La vista previa simplificada del plugin Previewers presenta una vulnerabilidad de tipo XSS que permite a atacantes ejecutar código arbitrario en Safari e Internet Explorer. Esto afecta a todos los usuarios de Safari e Internet Explorer de Prism versiones posteriores a v1.1.0 e incluyéndola, que utilizan el plugin _Previewers_ (versiones posteriores a v1.10.0 e incluyéndola) o el plugin _Previewer: Easing_ (versiones v1.1.0 hasta v1.9.0). Este problema es corregido en la versión 1.21.0. Para solucionar el problema sin actualizar, desactive la vista previa simplificada en todos los bloques de código afectados. Necesita Prism versión v1.10.0 o más reciente para aplicar esta solución","source":"nvd"}],"published":"2020-08-07T16:30:14.000Z","modified":"2026-07-08T06:00:45.631Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:L","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:H/Au:N/C:N/I:P/A:N","score":2.6,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 1.1.0, < 1.21.0","status":"affected"}],"vendor":"PrismJS","product":"prism","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.1.0","status":"affected","fixed":"1.21.0"}],"ecosystem":"npm","package":"prismjs","purl":"pkg:npm/prismjs","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.1.0","fixed":"1.21.0"}],"vendor":"prismjs","product":"previewers","cpe":"cpe:2.3:a:prismjs:previewers:*:*:*:*:*:prismjs:*:*","source":"nvd"}],"references":[{"url":"https://github.com/PrismJS/prism/security/advisories/GHSA-wvhm-4hhf-97x9","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://prismjs.com/plugins/previewers/#disabling-a-previewer","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PrismJS/prism/pull/2506/commits/7bd7de05edf71112a3a77f87901a2409c9c5c20c","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15138","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15138","url":"https://www.cve.org/CVERecord?id=CVE-2020-15138","licence":"CVE Terms of Use","modified":"2024-08-04T13:08:21.948Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wvhm-4hhf-97x9","url":"https://github.com/advisories/GHSA-wvhm-4hhf-97x9","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:45.631Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15138","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15138","licence":"Public domain","modified":"2026-06-17T02:56:07.577Z"}],"updatedAt":"2026-11-25T22:57:53.868Z","epss":{"score":0.02041,"percentile":0.81833,"date":"2026-11-30T12:00:22.000Z"}}