Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented May 28, 2023

This PR contains the following updates:

Package Change Age Confidence
prismjs 1.20.0 -> 1.27.0 age confidence

GitHub Vulnerability Alerts

CVE-2020-15138

Impact

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).

Patches

This problem is patched in v1.21.0.

Workarounds

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.

References

The vulnerability was introduced by this commit on Sep 29, 2015 and fixed by Masato Kinugawa (#​2506).

For more information

If you have any questions or comments about this advisory, please open an issue.

CVE-2021-23341

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.

CVE-2021-32723

Some languages before 1.24.0 are vulnerable to Regular Expression Denial of Service (ReDoS).

Impact

When Prism is used to highlight untrusted (user-given) text, an attacker can craft a string that will take a very very long time to highlight. Do not use the following languages to highlight untrusted text.

  • ASCIIDoc
  • ERB

Other languages are not affected and can be used to highlight untrusted text.

Patches

This problem has been fixed in Prism v1.24.

References

CVE-2021-3801

Prism is a syntax highlighting library. The prismjs package is vulnerable to ReDoS (regular expression denial of service). An attacker that is able to provide a crafted HTML comment as input may cause an application to consume an excessive amount of CPU.

CVE-2022-23647

Impact

Prism's Command line plugin can be used by attackers to achieve an XSS attack. The Command line plugin did not properly escape its output, leading to the input text being inserted into the DOM as HTML code.

Server-side usage of Prism is not impacted. Websites that do not use the Command Line plugin are also not impacted.

Patches

This bug has been fixed in v1.27.0.

Workarounds

Do not use the Command line plugin on untrusted inputs, or sanitized all code blocks (remove all HTML code text) from all code blocks that use the Command line plugin.

References


Release Notes

PrismJS/prism (prismjs)

v1.27.0

Compare Source

New components
Updated components
Updated plugins
Other

v1.26.0

Compare Source

New components
Updated components
Updated plugins
Updated themes
Other

v1.25.0

Compare Source

New components
Updated components
Updated plugins
Updated themes
  • Twilight
Other

v1.24.1

Compare Source

Updated components
Updated plugins

v1.24.0

Compare Source

New components
Updated components

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency prismjs to v1.27.0 [SECURITY] Update dependency prismjs to v1.27.0 [SECURITY] - autoclosed Feb 24, 2024
@renovate renovate bot closed this Feb 24, 2024
@renovate renovate bot deleted the renovate/npm-prismjs-vulnerability branch February 24, 2024 04:45
@renovate renovate bot restored the renovate/npm-prismjs-vulnerability branch February 24, 2024 07:06
@renovate renovate bot changed the title Update dependency prismjs to v1.27.0 [SECURITY] - autoclosed Update dependency prismjs to v1.27.0 [SECURITY] Feb 24, 2024
@renovate renovate bot reopened this Feb 24, 2024
@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch from 98178b0 to 90cddf8 Compare February 24, 2024 07:08
@renovate renovate bot changed the title Update dependency prismjs to v1.27.0 [SECURITY] Update dependency prismjs to v1.27.0 [SECURITY] - autoclosed Apr 3, 2024
@renovate renovate bot closed this Apr 3, 2024
@renovate renovate bot deleted the renovate/npm-prismjs-vulnerability branch April 3, 2024 13:31
@renovate renovate bot changed the title Update dependency prismjs to v1.27.0 [SECURITY] - autoclosed Update dependency prismjs to v1.27.0 [SECURITY] Apr 3, 2024
@renovate renovate bot reopened this Apr 3, 2024
@renovate renovate bot restored the renovate/npm-prismjs-vulnerability branch April 3, 2024 15:26
@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch from 90cddf8 to f65de11 Compare April 3, 2024 15:29
@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch from f65de11 to f8ba8d9 Compare August 13, 2025 13:58
@renovate renovate bot changed the title Update dependency prismjs to v1.27.0 [SECURITY] Update dependency prismjs to v1.30.0 [SECURITY] Aug 13, 2025
@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch from f8ba8d9 to 10ee4ec Compare October 15, 2025 22:07
@renovate renovate bot changed the title Update dependency prismjs to v1.30.0 [SECURITY] Update dependency prismjs to v1.27.0 [SECURITY] Oct 15, 2025
@renovate renovate bot force-pushed the renovate/npm-prismjs-vulnerability branch from 10ee4ec to 5f2ff97 Compare November 11, 2025 02:45
@renovate
Copy link
Author

renovate bot commented Nov 11, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants