Prism
Monthly
Stored cross-site scripting in the Astro ecosystem affects @astrojs/prism before 4.1.2 and the @astrojs/markdoc prism() extension from 0.3.0 through 2.1.1: code blocks tagged with a language Prism has no grammar for are emitted into the page as raw HTML instead of escaped text, so embedded markup and script execute in the site's origin for every visitor. Exploitation requires an authenticated low-privileged actor - a content author on a Markdoc site using the prism() extension whose ordinary HTML rendering is otherwise disabled, or an application passing untrusted code plus an attacker-influenced lang into the <Prism /> component - plus a victim viewing the rendered page (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, 5.4). Sites using the default Shiki highlighter, supported languages, or plaintext/no-language blocks are unaffected; no public exploit has been identified at time of analysis.
Prism (aka PrismJS) through 1.29.0 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML but does not directly contain JavaScript), because document.currentScript lookup. Rated medium severity (CVSS 4.9), this vulnerability is remotely exploitable. Public exploit code available and no vendor patch available.
Prism is a syntax highlighting library. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Cross-Site Scripting (XSS) vulnerability could allow attackers to inject malicious scripts into web pages viewed by other users.
prism is vulnerable to Inefficient Regular Expression Complexity. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
Prism is a syntax highlighting library. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Uncontrolled Resource Consumption vulnerability could allow attackers to cause denial of service by exhausting system resources.
The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the prism-asciidoc, prism-rest, prism-tap and prism-eiffel components. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
Stored cross-site scripting in the Astro ecosystem affects @astrojs/prism before 4.1.2 and the @astrojs/markdoc prism() extension from 0.3.0 through 2.1.1: code blocks tagged with a language Prism has no grammar for are emitted into the page as raw HTML instead of escaped text, so embedded markup and script execute in the site's origin for every visitor. Exploitation requires an authenticated low-privileged actor - a content author on a Markdoc site using the prism() extension whose ordinary HTML rendering is otherwise disabled, or an application passing untrusted code plus an attacker-influenced lang into the <Prism /> component - plus a victim viewing the rendered page (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, 5.4). Sites using the default Shiki highlighter, supported languages, or plaintext/no-language blocks are unaffected; no public exploit has been identified at time of analysis.
Prism (aka PrismJS) through 1.29.0 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML but does not directly contain JavaScript), because document.currentScript lookup. Rated medium severity (CVSS 4.9), this vulnerability is remotely exploitable. Public exploit code available and no vendor patch available.
Prism is a syntax highlighting library. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Cross-Site Scripting (XSS) vulnerability could allow attackers to inject malicious scripts into web pages viewed by other users.
prism is vulnerable to Inefficient Regular Expression Complexity. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
Prism is a syntax highlighting library. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. This Uncontrolled Resource Consumption vulnerability could allow attackers to cause denial of service by exhausting system resources.
The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the prism-asciidoc, prism-rest, prism-tap and prism-eiffel components. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.